0 Replies Latest reply on Oct 5, 2004 8:34 AM by lakr1

    JConsole and JBoss 3.2.5

    lakr1 Newbie

      Hello,

      How can I use the new JConsole from jdk 1.5 with JBoss 3.2.5? I tried
      set system properties as:

      set JAVA_HOME=C:\jdk1.5
      set JAVA_OPTS=%JAVA_OPTS% -Xms64m -Xmx512m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8084 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false

      and restarted JBoss, but it fails to start, with lots of exceptions:

      14:27:20,491 ERROR [MainDeployer] Initialization failed jboss.system:service=MainDeployer
      org.jboss.util.NestedRuntimeException: Error creating MBeanProxy: jboss.system:type=ServerConfig; - nested throwable: (javax.management.Inst
      anceNotFoundException: 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:28)
      at org.jboss.deployment.MainDeployer.createService(MainDeployer.java:330)
      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.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
      at $Proxy0.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:283)
      at org.jboss.system.ServiceController.create(ServiceController.java:216)
      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.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.system.server.ServerImpl.startBootService(ServerImpl.java:463)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:371)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
      at org.jboss.Main.boot(Main.java:145)
      at org.jboss.Main$1.run(Main.java:399)
      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)
      ... 36 more
      14:27:20,569 WARN [ServiceController] Problem creating service jboss.system:service=MainDeployer


      // Lars Krog-Jensen