Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-5885

jconsole.sh should fail fast if JBOSS_HOME is incorrect instead of starting the console with an incorrecdt classpath

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 23.0.0.Final
    • 16.0.0.Final
    • JMX, Scripts
    • None

      If $JBOSS_HOME is incorrectly set, we get a vague WARNING message when the script starts, but jconsole is run and shows the GUI window. This is misleading, because jconsole won't have the correct classpath and won't be able to connect to Wildfly, leading to an ambiguous "Cannot connect" error.

      jconsole.sh should fail fast if it cannot find the jboss-cli-client.jar and avoid this entire confusion.

      Steps to reproduce:

      1. export JBOSS_HOME=/no/existing/path
      2. ./standalone.sh

              lvydra Lukas Vydra
              cstroe Cosmin Stroe (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: