0 Replies Latest reply on Jan 29, 2007 10:58 PM by freebase

    Undeploy a Management Bean: Caused by: javax.management.Inst

    freebase

      I have an application which is using Manage bean and Jboss 4.0.5.GA. when I undeploy the ServiceOne of jboss-EJB-3.0_RC9-FD, the programming gives me some error information:

      10:41:45,674 INFO [STDOUT] ServiceThree - Interceptor
      10:41:45,675 INFO [STDOUT] ServiceThree - Stopping
      10:41:45,676 WARN [ServiceDelegateWrapper] Stopping failed jboss.j2ee:jar=tutorial.jar,name=ServiceThree,service=EJB3
      java.lang.RuntimeException: javax.management.InstanceNotFoundException: jboss.j2ee:jar=tutorial.jar,name=ServiceThree,service=EJB3,type=ManagementInterface is not registered.
       at org.jboss.ejb3.JmxKernelAbstraction.uninstallMBean(JmxKernelAbstraction.java:159)
       at org.jboss.ejb3.service.ServiceContainer.stop(ServiceContainer.java:166)
       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.ejb3.ServiceDelegateWrapper.stopService(ServiceDelegateWrapper.java:118)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:315)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:247)
       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
       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: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.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.stop(Unknown Source)
       at org.jboss.system.ServiceController.stop(ServiceController.java:508)
      
      
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      Caused by: javax.management.InstanceNotFoundException: jboss.j2ee:jar=tutorial.jar,name=ServiceThree,service=EJB3,type=ManagementInterface is not registered.
       at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
       at org.jboss.mx.server.MBeanServerImpl.unregisterMBean(MBeanServerImpl.java:383)
       at org.jboss.ejb3.JmxKernelAbstraction.uninstallMBean(JmxKernelAbstraction.java:155)
       ... 134 more
      10:41:45,680 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:jar=tutorial.jar,name=ServiceThree,service=EJB3,type=ManagementInterface
      10:41:45,680 INFO [STDOUT] ServiceTwo - Stopping
      10:41:45,682 WARN [ServiceDelegateWrapper] Stopping failed jboss.j2ee:jar=tutorial.jar,name=ServiceTwo,service=EJB3
      java.lang.RuntimeException: javax.management.InstanceNotFoundException: tutorial:service=serviceTwo is not registered.
       at org.jboss.ejb3.JmxKernelAbstraction.uninstallMBean(JmxKernelAbstraction.java:159)
      
      Caused by: javax.management.InstanceNotFoundException: jboss.j2ee:jar=tutorial.jar,name=ServiceOne,service=EJB3,type=ManagementInterface is not registered.
       at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
      



      Any ideas or info would be greatly appreciated.

      Thank you!

      Scott