Bug 819039

Summary: [as7] code that discovers the config file names does not take the jboss.*.default.config sysprops into account
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: PluginsAssignee: Charles Crouch <ccrouch>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: 4.3CC: ccrouch, hbrock, hrupp
Target Milestone: ---   
Target Release: RHQ 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-01 10:17:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 707223    

Description Ian Springer 2012-05-04 16:21:43 UTC
The following sysprops can optionally be specified to override the corresponding hard-coded default config file names:

jboss.server.default.config
jboss.host.default.config
jboss.domain.default.config

For details, see:

https://github.com/jbossas/jboss-as/pull/1455

We need to add support for these. Discovery logic should be:

String serverConfig = serverCmdLine.getClassOption(SERVER_CONFIG_OPTION);
if (serverConfig == null) {
   serverConfig = serverCmdLine.getSystemProperty("jboss.server.default.config");
}
if (serverConfig == null) {
   serverConfig = "standalone.xml";
}

The first if-block is the one that needs to be added for all three config files.

Comment 1 Ian Springer 2012-05-05 16:52:21 UTC
I fixed this as part of http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=26a25e8, since I was working in this exact part of the code.

Comment 4 Heiko W. Rupp 2013-09-01 10:17:50 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.