JDK 1.5 JConsole Failure JBoss 4.0
mpruden Oct 8, 2004 6:05 AMI have installed JBoss 4.0.0 and the final release of JDK 1.5
JBoss [Zion] 4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
My application starts an run normally. Unfortunatly if I enable the jmxremote feature of JDK 1.5 (new) required to use the JConsole application (new) by adding the following line to my run.bat file ...
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote
... then I get the following error on startup. I have tried removing the javax.* classes from the /jib/jboss-jmx.jar, But this makes no difference, the error is the same.
Can anyone help with how I can get this reature working?
10:57:27,000 ERROR [MainDeployer] Initialization failed jboss.system:service=MainDeployer
org.jboss.util.NestedRuntimeException: Error creating MBeanProxy: jboss.system:type=ServerConfig; - nested throwable: (javax.management.InstanceNotFoundException: jboss.system:type=ServerConfig)
at org.jboss.mx.util.MBeanProxyExt.(MBeanProxyExt.java:77)
at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:292)
at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:247)
at org.jboss.system.server.ServerConfigLocator.locate(ServerConfigLocator.java:30)
at org.jboss.deployment.MainDeployer.createService(MainDeployer.java:431)
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:219)
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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
at $Proxy0.create(Unknown Source)
at org.jboss.system.ServiceController.create(ServiceController.java:328)
at org.jboss.system.ServiceController.create(ServiceController.java:273)
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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.system.server.ServerImpl.startBootService(ServerImpl.java:467)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:357)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293)
at org.jboss.Main.boot(Main.java:151)
at org.jboss.Main$1.run(Main.java:405)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.management.InstanceNotFoundException: jboss.system:type=ServerConfig
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBeanInfo(DefaultMBeanServerInterceptor.java:1303)
at com.sun.jmx.mbeanserver.JmxMBeanServer.getMBeanInfo(JmxMBeanServer.java:903)
at org.jboss.mx.util.MBeanProxyExt.(MBeanProxyExt.java:69)
... 37 more