Bug 1103620 - (6.4.0) Cannot pass jboss.cli.config property via jboss-cli.[bat|sh] scripts
Summary: (6.4.0) Cannot pass jboss.cli.config property via jboss-cli.[bat|sh] scripts
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Scripts and Commands
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: DR9
: EAP 6.4.0
Assignee: James Perkins
QA Contact: Petr Kremensky
URL:
Whiteboard:
Depends On:
Blocks: 1134821
TreeView+ depends on / blocked
 
Reported: 2014-06-02 08:37 UTC by Petr Kremensky
Modified: 2019-08-19 12:43 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1134821 (view as bug list)
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1149648 0 unspecified CLOSED Enhanced usage of system properties in jboss-cli 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker WFLY-3446 0 Major Resolved cli system props specified with -Dxxx for jboss-cli.sh/bat are ignored 2017-09-15 06:47:45 UTC

Internal Links: 1149648

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


Note You need to log in before you can comment on or make changes to this bug.