3 Replies Latest reply on Jun 23, 2015 6:16 AM by Wolfgang Mayer

    cannot get jconsole loaded when starting JBOSS EAP 6

    Patty Williams Newbie

      I am running JBOSS EAP 6 (standalone 6.3.3).  I added these lines to my standalone.conf file

      [root@jaspersoft1 bin]# diff standalone.conf standalone.conf.PATTY

      56a57,63

      >    # pdw added per Jasper Support Instructions to bring up jconsole

      >    JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=8999"

      >    JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"

      >    JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"

      >    JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"

      >    JAVA_OPTS="$JAVA_OPTS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"

      >    JAVA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=10.10.10.32"

      [root@jaspersoft1 bin]#

       

      but when I try to start JBOSS i get an exception that the jboss.system.server.jmx.MBeanServerBuilderImpl class is not found.  What am I missing?

       

      Below is the full output

        JBoss Bootstrap Environment

        JBOSS_HOME: /usr/share/jbossas

        JAVA: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75.x86_64/bin/java

       

        JAVA_OPTS:  -server -XX:+UseCompressedOops -verbose:gc -Xloggc:"/usr/share/jbossas/standalone/log/gc.log" -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading  -Xms4g -Xmx4g -XX:PermSize=512m -XX:MaxPermSize=512m -Xss2m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.modules.policy-permissions=true -Djavax.xml.soap.MessageFactory=org.apache.axis.soap.MessageFactoryImpl -Djavax.xml.soap.SOAPConnectionFactory=org.apache.axis.soap.SOAPConnectionFactoryImpl -Djavax.xml.soap.SOAPFactory=org.apache.axis.soap.SOAPFactoryImpl -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl -Djava.rmi.server.hostname=10.10.10.32

       

       

      =========================================================================

       

       

      javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class org.jboss.system.server.jmx.MBeanServerBuilderImpl: java.lang.ClassNotFoundException: org.jboss.system.server.jmx.MBeanServerBuilderImpl

        at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:503)

        at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:539)

        at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:316)

        at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:231)

        at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:192)

        at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:466)

        at sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:453)

        at sun.management.Agent.startAgent(Agent.java:260)

        at sun.management.Agent.startAgent(Agent.java:456)

      Caused by: java.lang.ClassNotFoundException: org.jboss.system.server.jmx.MBeanServerBuilderImpl

        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

        at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:446)

        at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:488)

        ... 8 more

      Exception thrown by the agent : javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class org.jboss.system.server.jmx.MBeanServerBuilderImpl: java.lang.ClassNotFoundException: org.jboss.system.server.jmx.MBeanServerBuilderImpl

        • 1. Re: cannot get jconsole loaded when starting JBOSS EAP 6
          Wolfgang Mayer Master

          I don't think you need to add the entries into your standalone.conf. It should be enough to change the Inet Address of the management interface.

          Please see also JMX connections to JBoss AS | Planet JBoss Developer

          • 2. Re: cannot get jconsole loaded when starting JBOSS EAP 6
            Patty Williams Newbie

            I did get a jconsole window started.  There were 2 options (processes) to chose from.  I chose the jboss-modules.jar one.  If my application runs "under" jboss control, is that what I should select?   Then I see in a seperate window jconsole.output with an exception:

             

            Jun 22, 2015 2:24:06 PM org.xnio.Xnio <clinit>

            INFO: XNIO Version 3.0.11.GA-redhat-2

            Jun 22, 2015 2:24:06 PM org.xnio.nio.NioXnio <clinit>

            INFO: XNIO NIO Implementation Version 3.0.11.GA-redhat-2

            Jun 22, 2015 2:24:06 PM org.jboss.remoting3.EndpointImpl <clinit>

            INFO: JBoss Remoting version 3.3.4.Final-redhat-1

            Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Error connecting to JBoss AS.

              at org.jboss.as.cli.gui.JConsoleCLIPlugin.getTabs(JConsoleCLIPlugin.java:80)

              at sun.tools.jconsole.VMPanel.createPluginTabs(VMPanel.java:652)

              at sun.tools.jconsole.VMPanel.propertyChange(VMPanel.java:324)

              at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)

              at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)

              at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:92)

              at javax.swing.event.SwingPropertyChangeSupport$1.run(SwingPropertyChangeSupport.java:97)

              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)

              at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:738)

              at java.awt.EventQueue.access$300(EventQueue.java:103)

              at java.awt.EventQueue$3.run(EventQueue.java:699)

              at java.awt.EventQueue$3.run(EventQueue.java:697)

              at java.security.AccessController.doPrivileged(Native Method)

              at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

              at java.awt.EventQueue.dispatchEvent(EventQueue.java:708)

              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)

              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)

              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)

              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

              at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

            Caused by: java.lang.NullPointerException

              at org.jboss.as.cli.gui.JConsoleCLIPlugin.connectCommandContext(JConsoleCLIPlugin.java:109)

              at org.jboss.as.cli.gui.JConsoleCLIPlugin.getTabs(JConsoleCLIPlugin.java:77)

              ... 20 more

            • 3. Re: cannot get jconsole loaded when starting JBOSS EAP 6
              Wolfgang Mayer Master

              When you change the configuration to access remote you should also select the 'Remote Process'. As mentioned in the above documentation

              the connection string should look similar to this:  service:jmx:remoting-jmx://<HOSTNAME>:<PORT>

              (eg service:jmx:remoting-jmx://myhost.mydomain.com:9999)