dev@glassfish.java.net

MBeanServerBuilder exceptions...

From: Peter Williams <Pete.Williams_at_Sun.COM>
Date: Mon, 24 Nov 2008 12:32:15 -0800

I set up a cluster with GlassFish 2.1 (B58, I know, it's a bit old, I'm
planning on grabbing latest bits soon)

I get exceptions shown below quite a bit, they seem to be fatal or at
least rather bad. I don't get them all the time. Is this a bug? (If
so, is it fixed?) Is it a known issue or just a configuration screwup
by me (and if so, anyone know what I did?)

I've seen this with starting the DAS, starting node agents (that trace
is below) and maybe starting a server instance.

Thanks for any suggestions...

-Peter

Redirecting output to
/space/tools/glassfish_v21_b58/nodeagents/papaya2-agent2/papaya2-instance0/logs/server.log
javax.management.JMRuntimeException: Failed to load MBeanServerBuilder
class com.sun.enterprise.ee.admin.AppServerMB eanServerBuilder:
java.lang.ClassNotFoundException:
com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder
        at
javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:480)
        at
javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:511)
        at
javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:298)
        at
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)
        at
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:174)
        at
sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302)
        at
java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)
        at
sun.management.jmxremote.ConnectorBootstrap.startLocalConnectorServer(ConnectorBootstrap.java:458)
        at sun.management.Agent.startAgent(Agent.java:135)
        at sun.management.Agent.agentmain(Agent.java:95)
        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:597)
        at
sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:325)
        at
sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:348)
Caused by: java.lang.ClassNotFoundException:
com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder
        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:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at
javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:423)
        at
javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:465)
        ... 15 more
Exception thrown by the agent : javax.management.JMRuntimeException:
Failed to load MBeanServerBuilder class com.sun
.enterprise.ee.admin.AppServerMBeanServerBuilder:
java.lang.ClassNotFoundException: com.sun.enterprise.ee.admin.AppS
erverMBeanServerBuilder
Exception in thread "Attach Listener"
java.lang.reflect.InvocationTargetException
        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:597)
        at
sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:325)
        at
sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:348)
Caused by: java.lang.RuntimeException:
javax.management.JMRuntimeException: Failed to load MBeanServerBuilder
class com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder:
java.lang.ClassNotFoundException: com.sun.enterprise.ee.adm
in.AppServerMBeanServerBuilder
        at sun.management.Agent.error(Agent.java:309)
        at sun.management.Agent.startAgent(Agent.java:153)
        at sun.management.Agent.agentmain(Agent.java:95)
        ... 6 more
Caused by: javax.management.JMRuntimeException: Failed to load
MBeanServerBuilder class com.sun.enterprise.ee.admin.
AppServerMBeanServerBuilder: java.lang.ClassNotFoundException:
com.sun.enterprise.ee.admin.AppServerMBeanServerBuild er
        at
javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:480)
        at
javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:511)
        at
javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:298)
        at
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)
        at
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:174)
        at
sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302)
        at
java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)
        at
sun.management.jmxremote.ConnectorBootstrap.startLocalConnectorServer(ConnectorBootstrap.java:458)
        at sun.management.Agent.startAgent(Agent.java:135)
        ... 7 more
Caused by: java.lang.ClassNotFoundException:
com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder
        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:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at
javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:423)
        at
javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:465)
        ... 15 more
Agent failed to start!