1 Reply Latest reply on Jun 12, 2006 2:27 AM by andy

    Redeployment problem

    Urs Wagner Novice

      I cannot redploy. It is awful always to restart JBoss.
      What have I to do that I can redploy my ear?
      The error is:

      java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: persistence.units:ear=bank3.ear.ear,jar=bank3.jar.jar,unitName=bankdb already registered.


      22:41:22,671 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:service=EJB3,ear=bank3.ear,jar=bank3.jar,name=calculator
      22:41:22,671 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:service=EJB3,ear=bank3.ear,jar=bank3.jar,name=calculator
      22:41:22,671 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:service=EJB3,ear=bank3.ear,jar=bank3.jar,name=ShoppingCartBean
      22:41:22,671 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:service=EJB3,ear=bank3.ear,jar=bank3.jar,name=ShoppingCartBean
      22:41:22,671 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:service=EJB3,ear=bank3.ear,jar=bank3.jar,name=VisitorSessionBean
      22:41:22,671 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:service=EJB3,ear=bank3.ear,jar=bank3.jar,name=VisitorSessionBean
      22:41:22,671 WARN [ServiceController] Ignoring request to stop nonexistent service: persistence.units:ear=bank3.ear.ear,jar=bank3.jar.jar,unitName=bankdb
      22:41:22,671 WARN [ServiceController] Ignoring request to destroy nonexistent service: persistence.units:ear=bank3.ear.ear,jar=bank3.jar.jar,unitName=bankdb
      22:41:22,671 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=bank3.jar
      java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: persistence.units:ear=bank3.ear.ear,jar=bank3.jar.jar,unitName=bankdb already registered.
      at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:80)
      at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:599)
      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:452)
      at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      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: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:260)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor5.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:260)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
      at $Proxy37.start(Unknown Source)
      at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:365)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.GeneratedMethodAccessor6.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.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:260)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:504)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:218)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:197)
      Caused by: javax.management.InstanceAlreadyExistsException: persistence.units:ear=bank3.ear.ear,jar=bank3.jar.jar,unitName=bankdb already registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:757)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:225)
      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.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:260)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376)
      at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:73)
      ... 50 more