[jboss-user] [Installation, Configuration & Deployment] - Jboss Error on Already registered ear package
rsood72
do-not-reply at jboss.com
Wed Aug 9 14:35:52 EDT 2006
How do I unregister an already registered instance of an ear or ejb jar file. Every time I try to redeploy my ear I get the following exception, It will help if someone could shed a light on this.
anonymous wrote : 14:21:29,289 ERROR [EjbModule] Initialization failed
| javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=ejb/Account
| ,service=EJB already registered.
| at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistr
| y.java:617)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB
| eanRegistry.java:198)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.interceptor.ObjectReferenceInterceptor.invoke(ObjectRefe
| renceInterceptor.java:59)
| at org.jboss.mx.interceptor.MBeanAttributeInterceptor.invoke(MBeanAttrib
| uteInterceptor.java:43)
| at org.jboss.mx.interceptor.PersistenceInterceptor2.invoke(PersistenceIn
| terceptor2.java:93)
| at org.jboss.mx.server.MBeanInvoker.invoke(MBeanInvoker.java:76)
| at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMB
| ean.java:144)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
| a:997)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
| a:327)
| at org.jboss.ejb.EjbModule.createService(EjbModule.java:297)
| at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:
| 158)
| at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
| ler.java:976)
| at $Proxy15.create(Unknown Source)
| at org.jboss.system.ServiceController.create(ServiceController.java:310)
|
| at org.jboss.system.ServiceController.create(ServiceController.java:243)
|
| at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy12.create(Unknown Source)
| at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:523)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
| at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
| tScanner.java:302)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
| canner.java:476)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| doScan(AbstractDeploymentScanner.java:201)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
| bstractDeploymentScanner.java:274)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
| 92)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
| ler.java:976)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:394)
| at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
| at org.jboss.Main.boot(Main.java:150)
| at org.jboss.Main$1.run(Main.java:395)
| at java.lang.Thread.run(Thread.java:536)
| 14:21:29,330 WARN [ServiceController] Problem creating service jboss.j2ee:modul
| e=BankAccount.jar,service=EjbModule
| javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=ejb/Account
| ,service=EJB already registered.
| at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistr
| y.java:617)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB
| eanRegistry.java:198)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.interceptor.ObjectReferenceInterceptor.invoke(ObjectRefe
| renceInterceptor.java:59)
| at org.jboss.mx.interceptor.MBeanAttributeInterceptor.invoke(MBeanAttrib
| uteInterceptor.java:43)
| at org.jboss.mx.interceptor.PersistenceInterceptor2.invoke(PersistenceIn
| terceptor2.java:93)
| at org.jboss.mx.server.MBeanInvoker.invoke(MBeanInvoker.java:76)
| at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMB
| ean.java:144)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
| a:997)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
| a:327)
| at org.jboss.ejb.EjbModule.createService(EjbModule.java:297)
| at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:
| 158)
| at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
| ler.java:976)
| at $Proxy15.create(Unknown Source)
| at org.jboss.system.ServiceController.create(ServiceController.java:310)
|
| at org.jboss.system.ServiceController.create(ServiceController.java:243)
|
| at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy12.create(Unknown Source)
| at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:523)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
| at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
| tScanner.java:302)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
| canner.java:476)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| doScan(AbstractDeploymentScanner.java:201)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
| bstractDeploymentScanner.java:274)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
| 92)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
| ler.java:976)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:394)
| at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
| nDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
| at org.jboss.Main.boot(Main.java:150)
| at org.jboss.Main$1.run(Main.java:395)
| at java.lang.Thread.run(Thread.java:536)
| 14:21:30,732 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.3/server/default/t
| mp/deploy/tmp42401HelloWorld.ear-contents/BankAccount.jar
| 14:21:30,782 INFO [StatelessSessionInstancePool] Started jboss.j2ee:jndiName=ej
| b/Hello,plugin=pool,service=EJB
| 14:21:30,792 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.3/server/default/t
| mp/deploy/tmp42401HelloWorld.ear-contents/HelloWorldEJB.jar
| 14:21:30,852 INFO [StatefulSessionInstancePool] Started jboss.j2ee:jndiName=ejb
| /Count,plugin=pool,service=EJB
| 14:21:30,852 INFO [StatefulSessionFilePersistenceManager] Started null
| 14:21:30,852 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.3/server/default/t
| mp/deploy/tmp42401HelloWorld.ear-contents/CountEJB.jar
| 14:21:30,882 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-3.2.3/
| server/default/deploy/HelloWorld.ear
| 14:21:30,882 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.2.3/server/
| default/deploy/HelloWorld.ear
| 14:21:30,882 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
| -3.2.3/server/default/deploy/Syb_datasource-ds
| 14:21:30,912 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.2.3/server/
| default/deploy/Syb_datasource-ds
| 14:21:30,912 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
| ration 'checkIncompleteDeployments()'
| Cause: Incomplete Deployment listing:
| Packages waiting for a deployer:
|
| Incompletely deployed packages:
|
| MBeans waiting for classes:
|
| MBeans waiting for other MBeans:
| [ObjectName: jboss.j2ee:module=BankAccount.jar,service=EjbModule
| state: FAILED
| I Depend On:
| Depends On Me: javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndi
| Name=ejb/Account,service=EJB already registered.]
| 14:21:31,042 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.2.3/server/
| default/conf/jboss-service.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964135#3964135
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964135
More information about the jboss-user
mailing list