Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5425

Running {jboss.home}/bin/jconsole.bat on Windows results in NoClassDefFoundError: jline/ConsoleReader

    Details

    • Steps to Reproduce:
      Hide

      1. Start EAP 6 as :
      standalone.bat -c standalone.xml -bmanagement localhost

      2. Start JConsole from <eap6-home>/bin/jconsole.bat

      3. Choose local option. Select running eap 6 server.

      Show
      1. Start EAP 6 as : standalone.bat -c standalone.xml -bmanagement localhost 2. Start JConsole from <eap6-home>/bin/jconsole.bat 3. Choose local option. Select running eap 6 server.
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      1. Add
      set CLASSPATH=%CLASSPATH%;%JBOSS_MODULEPATH%\jline\main\jline-0.9.94-redhat-1.jar;

      in jconsole.bat just below:

      rem Setup The Classpath

      set CLASSPATH=%JAVA_HOME%\lib\jconsole.jar
      set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar

      Show
      1. Add set CLASSPATH=%CLASSPATH%;%JBOSS_MODULEPATH%\jline\main\jline-0.9.94-redhat-1.jar; in jconsole.bat just below: rem Setup The Classpath set CLASSPATH=%JAVA_HOME%\lib\jconsole.jar set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar

      Description

      When connecting to a local AS from jconsole, it throws error in JConsole output window and does not connect.

      Aug 24, 2012 5:09:43 PM org.xnio.Xnio <clinit>
      INFO: XNIO Version 3.0.4.GA-redhat-1
      Aug 24, 2012 5:09:43 PM org.xnio.nio.NioXnio <clinit>
      INFO: XNIO NIO Implementation Version 3.0.4.GA-redhat-1
      Aug 24, 2012 5:09:43 PM org.jboss.remoting3.EndpointImpl <clinit>
      INFO: JBoss Remoting version 3.2.8.GA-redhat-1
      Aug 24, 2012 5:09:43 PM org.xnio.ChannelListeners invokeChannelListener
      ERROR: A channel event listener threw an exception
      java.lang.NoClassDefFoundError: jline/ConsoleReader
      at org.jboss.as.cli.impl.Console$Factory.getConsole(Console.java:102)
      at org.jboss.as.cli.impl.CommandContextImpl.initBasicConsole(CommandContextImpl.java:262)
      at org.jboss.as.cli.impl.CommandContextImpl.readLine(CommandContextImpl.java:559)
      at org.jboss.as.cli.impl.CommandContextImpl.access$100(CommandContextImpl.java:140)
      at org.jboss.as.cli.impl.CommandContextImpl$AuthenticationCallbackHandler.handle(CommandContextImpl.java:1128)
      at org.jboss.as.protocol.ProtocolChannelClient$WrapperCallbackHandler.handle(ProtocolChannelClient.java:264)
      at com.sun.security.sasl.ClientFactoryImpl.getUserInfo(ClientFactoryImpl.java:118)
      at com.sun.security.sasl.ClientFactoryImpl.createSaslClient(ClientFactoryImpl.java:76)
      at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities$1.run(ClientConnectionOpenListener.java:352)
      at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities$1.run(ClientConnectionOpenListener.java:350)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:350)
      at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:214)
      at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
      at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189)
      at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103)
      at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
      at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189)
      at org.xnio.ssl.JsseConnectedSslStreamChannel.handleReadable(JsseConnectedSslStreamChannel.java:180)
      at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103)
      at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
      at org.xnio.nio.NioHandle.run(NioHandle.java:90)
      at org.xnio.nio.WorkerThread.run(WorkerThread.java:184)
      Caused by: java.lang.ClassNotFoundException: jline.ConsoleReader
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      ... 23 more
      Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Error connecting to JBoss AS.
      at org.jboss.as.cli.gui.JConsoleCLIPlugin.getTabs(JConsoleCLIPlugin.java:79)
      at sun.tools.jconsole.VMPanel.createPluginTabs(VMPanel.java:641)
      at sun.tools.jconsole.VMPanel.propertyChange(VMPanel.java:315)
      at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
      at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:75)
      at javax.swing.event.SwingPropertyChangeSupport$1.run(SwingPropertyChangeSupport.java:80)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
      at java.awt.EventQueue.access$000(EventQueue.java:84)
      at java.awt.EventQueue$1.run(EventQueue.java:607)
      at java.awt.EventQueue$1.run(EventQueue.java:605)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
      Caused by: java.lang.NullPointerException
      at org.jboss.as.cli.gui.JConsoleCLIPlugin.connectCommandContext(JConsoleCLIPlugin.java:108)
      at org.jboss.as.cli.gui.JConsoleCLIPlugin.getTabs(JConsoleCLIPlugin.java:76)
      ... 19 more

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dlofthouse Darran Lofthouse
                  Reporter:
                  mkhandek Mugdha Khandekar
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: