Bug 1134821

Summary: [QE] (6.3.z) Cannot pass jboss.cli.config property via jboss-cli.[bat|sh] scripts
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: Scripts and CommandsAssignee: jboss-set
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.1CC: cdewolf, fnasser, istudens, myarboro, olubyans, pgier
Target Milestone: CR1   
Target Release: EAP 6.3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1103620 Environment:
Last Closed: 2019-08-19 12:40:15 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: 1103620    
Bug Blocks: 1151405    

Description Petr Kremensky 2014-08-28 09:48:27 UTC
+++ This bug was initially created as a clone of Bug #1103620 +++

Description of problem:
 According to documentation [1] the jboss.cli.config property should be used to specify the location of jboss-cli.xml file. However I am unable to pass it via jboss-cli.[bat|sh] scripts.

Version-Release number of selected component (if applicable):
 EAP 6.3.0.ER5

How reproducible:
 Always

Steps to Reproduce:
 1. Move the config file, start the server. 
unzip -q jboss-eap-6.3.0.ER5.zip
cd jboss-eap-6.3/bin
mkdir config
mv jboss-cli.xml config/
./standalone.sh &
...

 2. 
./jboss-cli.sh -Djboss.cli.config=<EAP_HOME>/bin/config/jboss-cli.xml

Actual results:
 WARN: can't find jboss-cli.xml. Using default configuration values.

Expected results:
 <EAP_HOME>/bin/config/jboss-cli.xml file is used.

[1] - http://documentation-devel.engineering.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.3/html-single/Administration_and_Configuration_Guide/index.html#Management_CLI_Configuration_Options

Comment 1 Petr Kremensky 2014-08-28 09:48:43 UTC
For 6.3.x CP stream tracking purposes.

Comment 3 Joe Wertz 2014-10-20 04:31:43 UTC
PR: https://github.com/jbossas/jboss-eap/pull/1821

Comment 7 Dominik Pospisil 2014-12-08 10:04:49 UTC
dev_acking as the new PR has been merged and verified on 6.4

Comment 8 Dominik Pospisil 2015-01-05 10:00:28 UTC
PR sent: https://github.com/jbossas/jboss-eap/pull/2178

Comment 9 Petr Kremensky 2015-01-19 09:52:39 UTC
Verified on EAP 6.3.3.CP.CR1