-
Bug
-
Resolution: Done
-
Major
-
4.2.0.CR1
When I add EAP 5.2 using runtime detection and then start the server, I get errors in the console:
15:07:25,729 INFO [JMXKernel] Legacy JMX core initialized javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class org.jboss.mx.server.MBeanServerBuilderImpl: java.lang.ClassNotFoundException: org.jboss.mx.server.MBeanServerBuilderImpl at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:481) at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:512) at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:299) at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:214) at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:175) 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: org.jboss.mx.server.MBeanServerBuilderImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:424) at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:466) ... 15 more Exception thrown by the agent : javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class org.jboss.mx.server.MBeanServerBuilderImpl: java.lang.ClassNotFoundException: org.jboss.mx.server.MBeanServerBuilderImpl 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 org.jboss.mx.server.MBeanServerBuilderImpl: java.lang.ClassNotFoundException: org.jboss.mx.server.MBeanServerBuilderImpl 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 org.jboss.mx.server.MBeanServerBuilderImpl: java.lang.ClassNotFoundException: org.jboss.mx.server.MBeanServerBuilderImpl at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:481) at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:512) at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:299) at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:214) at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:175) 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: org.jboss.mx.server.MBeanServerBuilderImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:424) at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:466) ... 15 more Agent failed to start!
It's kind of strange, but it didn't happen at first. When I changed the server to compressed deployment, it started happening. So I wanted to check again in a new workspace. In the new workspace, I just added the server and start (with default - exploded wars) and it happened again.
- is related to
-
JBIDE-18366 Sometimes, EAP6/WildFly8/AS7 fails to start - Failed initializing module org.jboss.as.logging
- Closed