1 Reply Latest reply on Nov 1, 2008 11:16 PM by brian dewyer

    Could not see JBoss5.0 mbeans in JConsole

    Vaibhav Natu Newbie

      Hi,
      I want to view the JBoss 5.0 base mbeans in JConsole. I am running JBoss 5.0.0 CR1 and jdk1.5.0_11 release with following settings in run.conf

      JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
       JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"
      


      But the server does not start giving following exception

      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

      The ClassNotFoundException occurred though I see the entry jboss-system-jmx.jar in classloader.xml in the conf directory.

      I have also tried instructions given on http://wiki.jboss.org/wiki/UseJDK5JConsole and
      http://wiki.jboss.org/wiki/JBossMBeansInJConsole.
      Does anybody have any idea about this? any help?