Bug 1103620

Summary: (6.4.0) 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: James Perkins <jperkins>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kremensky <pkremens>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbaranow, cdewolf, fnasser, istudens, jperkins, kkhan, olubyans, pgier
Target Milestone: DR9   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1134821 (view as bug list) 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1134821    

Description Petr Kremensky 2014-06-02 08:37:03 UTC
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 Joe Wertz 2014-10-20 04:31:44 UTC
PR: https://github.com/jbossas/jboss-eap/pull/1820

Comment 2 Petr Kremensky 2014-10-21 11:11:59 UTC
https://github.com/jbossas/jboss-eap/pull/1820 breaks the jboss-cli.bat usage.

C:\jboss-eap-6.4\bin>jboss-cli.bat -c shutdown
Duplicate argument '--command'/'--commands'.
Press any key to continue . . .

We started DR6 testing today so I don't have more results yet.

Comment 3 Joe Wertz 2014-10-22 15:17:01 UTC
Fix PR: https://github.com/jbossas/jboss-eap/pull/1839

Comment 4 Petr Kremensky 2014-10-29 09:50:30 UTC
There are still some issues left:

jboss-cli.bat -c command=:shutdown
Duplicate argument '--command'/'--commands'.

Comment 6 Petr Kremensky 2014-11-13 13:36:11 UTC
Verified on EAP 6.4.0.DR9