3 Replies Latest reply on Mar 8, 2007 8:33 AM by Cristiano Kliemann

    Connect to jmx server of JBoss 5.0 beta

    nikolas Newbie

      Hello

      What should I do to connect to jmx server of JBoss 5.0 beta on java 1.5?
      Should I have any surprises if server running on java 1.6?

      I did things written at http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMBeansInJConsole, but exceptions are thrown and server shutting down.

        • 1. Re: Connect to jmx server of JBoss 5.0 beta
          Elias Ross Master

          What are the exceptions?

          Did JConsole (JMX client) not work for you?

          • 2. Re: Connect to jmx server of JBoss 5.0 beta
            nikolas Newbie

            Output to console

            JBoss Bootstrap Environment

            JBOSS_HOME: /opt/jboss-5.0.0.Beta1

            JAVA: /usr/lib/jvm/java-1.5.0-sun-1.5.0_06/bin/java

            JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx128m -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl -Djboss.platform.mbeanserver -Dcom.sun.management.jmxremote

            CLASSPATH: /opt/jboss-5.0.0.Beta1/bin/run.jar:/usr/lib/jvm/java-1.5.0-sun-1.5.0_06/lib/tools.jar

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

            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:499)
            at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:530)
            at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:304)
            at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:219)
            at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:180)
            at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:264)
            at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:512)
            at sun.management.jmxremote.ConnectorBootstrap.startLocalConnectorServer(ConnectorBootstrap.java:385)
            at sun.management.Agent.premain(Agent.java:92)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at sun.management.Agent.startAgent(Agent.java:197)
            Caused by: java.lang.ClassNotFoundException: org.jboss.system.server.jmx.MBeanServerBuilderImpl
            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:441)
            at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:484)
            ... 13 more



            Without specifing options in env JBoss runs correctly.
            JMX client is JConsole

            • 3. Re: Connect to jmx server of JBoss 5.0 beta
              Cristiano Kliemann Newbie

              I'm experiencing the same problem. It seems to be related to:
              http://jira.jboss.com/jira/browse/JBAS-2021

              But both MBeanServerBuilderImpl aren't working for me.