Bug 1238868

Summary: [GSS](6.4.z) jconsole.bat not passing command line arguments to jconsole.exe
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Brad Maxwell <bmaxwell>
Component: OtherAssignee: baranowb <bbaranow>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Truhlar <jtruhlar>
Severity: low Docs Contact: eap-docs <eap-docs>
Priority: low    
Version: 6.4.2CC: bbaranow, jason.greene, jtruhlar, mcada, msochure, ppalaga
Target Milestone: CR1   
Target Release: EAP 6.4.12   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: eap6412-proposed
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-17 13:13:09 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: 1375585    

Description Brad Maxwell 2015-07-02 20:40:34 UTC
Description of problem:

jconsole.bat not passing command line arguments to jconsole.exe

How reproducible:

Pass an argument such as one to enable debug logging such as shown below and the logging will not change.

jconsole.bat -J-Djava.util.logging.config.file=logging-jconsole.properties

Expected results:

Arguments passed to jconsole.exe

Workaround: 

Edit %JBOSS_HOME%/bin/jconsole.bat

Change this line from:

"%JAVA_HOME%\bin\jconsole.exe" "-J-Djava.class.path=%CLASSPATH%"

To:

if "%*" == "" (
    "%JAVA_HOME%\bin\jconsole.exe" "-J-Djava.class.path=%CLASSPATH%"
) else (
    "%JAVA_HOME%\bin\jconsole.exe" "-J-Djava.class.path=%CLASSPATH%" %*
)

Comment 4 Mike McCune 2016-03-28 22:18:06 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 6 Michael Cada 2016-11-05 11:16:20 UTC
Verified with EAP 6.4.12.CP.CR1

Comment 7 Petr Penicka 2017-01-17 13:13:09 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.