[Installation, Configuration & Deployment] - Jboss Error on Already registered ear package
by rsood72
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
19 years, 9 months
[Clustering/JBoss] - Session is getting replicated on JBoss-4.0.1 only one time.
by michael_kov
Hello,
I have 2 linux servers running jboss 4.0.1 and using jboss-cache.jar 1.2.4.
Session replication is working correctly ONLY first time, after both servers has been restarted. So the second time whenever i change the values of the session (i even tried to create a new one) they have not been replicated across ..
In my test.jsp I am using this: request.getSession().setAttribute("test","test1") ; request.getSession().getAttribute("test") ;
Here is configuration I am using:
In web.xml : (both servers)
<distributable/>
In jboss-web.xml : (both servers)
| <replication-config> <replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger>
| <replication-granularity>attribute</replication-granularity>
| </replication-config>
In tc5-cluster-service.xml
<attribute name="IsolationLevel">REPEATABLE_READ</attribute>
| .
| <attribute name="CacheMode">REPL_SYNC</attribute>
| ..
| <UDP mcast_addr="230.1.2.3" mcast_port="45577" bind_addr="192.168.1.1"
| ip_ttl="64" ip_mcast="true"
| mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
| ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
| loopback="false"/>
bind_addr="192.168.1.2" is set for second server.
In jbossweb-tomcat50.sar/META-INF/jboss-service.xml (both servers)
<depends>jboss.cache:service=TomcatClusteringCache</depends>
| <depends>jboss:service=TransactionManager</depends>
Thanks in advance!
Michael
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964133#3964133
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964133
19 years, 9 months
[JBoss Seam] - Re: Resume Pageflow after Conversation Timeout
by petemuir
"connerjohn" wrote :
| I agree. However, shouldn't the data from previous steps be saved in the database (I'm not doing anything with transactions to delay saving) automatically by Seam.
|
Yup of course. I use pageflows for wizards, so only save to the database at user controlled points (normally the finish button at the end!).
anonymous wrote :
| But beyond that, what I'm looking for is the ability to specify an action method to execute instead of the no-conversation-view-id. I am using the no-conversation-view-id now and redirecting to an action in pages.xml which executes an SFSB method and then returns an outcome for a new *.xhtml page. However, it would be a lot better and more contained if I could just specify the action in the pageflow definition itself - similar to the no-conversation-view-id.
|
| Right now I am just restarting the pageflow in the pages.xml action. However, for the right pageflow process, the SFSB method called could be smart enough to "setup" the conversation state (and entirely up to the developer to make sure the state was restored correctly).
|
Well I think that sounds like a reasonable request; start a pageflow on conversation timeout, and then populate the conversation with whatever information you want. This could be via an action method or perhaps the name of the pageflow to start.
I think the normal proceedure for this is to put it in JIRA.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964131#3964131
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964131
19 years, 9 months
[JBoss Portal] - Re: Using WSRP with JBoss Portal 2.4
by danny_hon
At the end of the stack trace, I found the following error.
Caused by: java.lang.NoClassDefFoundError: org/jboss/xb/binding/sunday/xop/XOPUnmarshaller
at org.jboss.ws.handler.HandlerChainBaseImpl.handleRequest(HandlerChainBaseImpl.java:259)
at org.jboss.ws.jaxrpc.CallImpl.callRequestHandlerChain(CallImpl.java:747)
at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:650)
at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
at $Proxy142.getServiceDescription(Unknown Source)
at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getServiceDescriptionAndRegisterIfNeeded(WSRPConsumerImpl.jav
a:493)
at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.updateCachesIfNeeded(WSRPConsumerImpl.java:361)
at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getPortletMap(WSRPConsumerImpl.java:275)
at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getPortlets(WSRPConsumerImpl.java:141)
at org.jboss.portal.federation.impl.FederatedPortletInvokerService.getPortlets(FederatedPortletInvokerService.ja
va:77)
at org.jboss.portal.core.portlet.management.PortletManagerBean.getPortlets(PortletManagerBean.java:228)
... 275 more
Do you know where is this class coming from?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964126#3964126
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964126
19 years, 9 months