Bug 1238868 - [GSS](6.4.z) jconsole.bat not passing command line arguments to jconsole.exe
Summary: [GSS](6.4.z) jconsole.bat not passing command line arguments to jconsole.exe
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Other
Version: 6.4.2
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: CR1
: EAP 6.4.12
Assignee: baranowb
QA Contact: Jiri Truhlar
eap-docs
URL:
Whiteboard: eap6412-proposed
Depends On:
Blocks: eap6412-payload
TreeView+ depends on / blocked
 
Reported: 2015-07-02 20:40 UTC by Brad Maxwell
Modified: 2019-08-15 04:49 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-01-17 13:13:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-1526 0 Minor Resolved AS7 JConsole scripts ignore arguments 2017-08-24 19:26:28 UTC
Red Hat Knowledge Base (Solution) 962343 0 None None None Never
Red Hat Knowledge Base (Solution) 1519003 0 None None None Never

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.


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