3 Replies Latest reply on Dec 3, 2005 4:46 PM by Scott Stark

    What's the preferred way to access the MBeans inside the mic

    Adrian D Newbie

      I can run JConsole and see the app, but none of the jboss mbeans are showing up.

      I tried setting the following properties:

      -Dcom.sun.management.jmxremote
      -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
      -Djboss.platform.mbeanserver

      from the jboss docs to bring up JConsole with the jboss beans, but I get the following exception:

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

      Is there some console that I can use that will display the management beans?

      Thanks,
      Adrian