Bug 1012743

Summary: Invalid log location after server startup when installed from installer
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jiri Pechanec <jpechane>
Component: EAPAssignee: Nobody <nobody>
Status: ASSIGNED --- QA Contact: Len DiMaggio <ldimaggi>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: atangrin, soa-p-jira
Target Milestone: ER8Keywords: Reopened
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jiri Pechanec 2013-09-27 04:56:46 UTC
1) Install FSW from installer
2) Rename dir jboss-eap-6.1 to another name
3) Start the server

a directory jboss-eap-6.1 is created and it contains part of standalone/log/server.log file

Comment 1 Jiri Pechanec 2013-12-20 11:52:28 UTC
Present in ER8

Comment 2 Thomas Hauser 2013-12-20 16:55:16 UTC
Did you by chance start the server you installed first? For some reason, EAP will modify the logging configuration to contain a hardcoded path after start up. 

I followed the reproduction procedure, and here is the result:

1) Right after install:
[[thauser] [11:46:01] FSWeww]$ll
total 172
-rw-rw-r--.  1 thauser thauser 166346 Dec 20 11:43 InstallationLog.txt
-rw-rw-r--.  1 thauser thauser   1422 Dec 20 11:40 InstallSummary.html
drwxrwxr-x. 15 thauser thauser   4096 Dec 20 11:43 jboss-eap-6.1

logging.properties contents:
handler.FILE.fileName=${org.jboss.boot.log.file:boot.log}

2) Rename: 
[[thauser] [11:47:10] FSWeww]$mv jboss-eap-6.1/ test/

3) Start: 
[[thauser] [11:47:42] FSWeww]$./test/bin/standalone.sh 

Results:
[[thauser] [11:53:48] FSWeww]$ll
total 172
-rw-rw-r--.  1 thauser thauser 166346 Dec 20 11:43 InstallationLog.txt
-rw-rw-r--.  1 thauser thauser   1422 Dec 20 11:40 InstallSummary.html
drwxrwxr-x. 15 thauser thauser   4096 Dec 20 11:43 test

logging.properties contents: 
handler.FILE.fileName=/home/thauser/FSWeww/test/standalone/log/server.log

Note that EAP is changing the logging.properties file. If you run the newly installed server first and then attempt to move it, you will hit this issue you have reported. However, it is not an installer issue.

Comment 3 Jiri Pechanec 2014-01-07 09:02:53 UTC
Thanks for the analysis - I am changing the component

Comment 4 Anne-Louise Tangring 2014-06-19 18:23:56 UTC
This needs an EAP issue if we want them to look at this. Please create and link.