JBoss 4.0.5 fails to start on Classpath HEAD with error: 19:52:17,557 WARN [ServiceController] Problem creating service jboss.system:service=MainDeployer java.lang.IllegalStateException: No 'jboss' MBeanServer found! at org.jboss.mx.util.MBeanServerLocator.locateJBoss(MBeanServerLocator.java:122) at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:335) at org.jboss.system.server.ServerConfigLocator.locate(ServerConfigLocator.java:42) at org.jboss.deployment.MainDeployer.createService(MainDeployer.java:471) at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:355) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) at $Proxy0.create(Unknown Source) at org.jboss.system.ServiceController.create(ServiceController.java:330) at org.jboss.system.ServiceController.create(ServiceController.java:273) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:355) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.system.server.ServerImpl.startBootService(ServerImpl.java:564) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:446) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) at org.jboss.Main.boot(Main.java:200) at org.jboss.Main$1.run(Main.java:490) at java.lang.Thread.run(Thread.java:743) at java.lang.VMThread.run(VMThread.java:120) A similar problem is logged trying to create the other initial deployer services.
This is a strange stack trace; I can't see any of our code in it.
Apologies - this was the stacktrace logged in JBoss. I didn't go through it - just wanted to get something logged. I'll try to get better detail. I can confirm this works fine with Classpath 0.92 but fails with Classpath CVS however.
Thanks; I didn't mean to criticise, but clearly it's pretty difficult to do anything with the current trace. It wouldn't surprise me if behaviour has changed between 0.92 and CVS, as Classpath now has a partial management implementation which (IIRC) wasn't present in 0.92.
Fixed for me by this patch by Andrew Haley: http://developer.classpath.org/pipermail/classpath-patches/2007-March/005202.html Awaits committing.
Fixed by this commit: 2007-04-02 Andrew Haley <address@hidden> * javax/management/ObjectName.java: Handle 0-length names. * javax/management/MBeanServerFactory.java: Use the domain that we've been passed, not the fixed string "DefaultDomain".