wood burning stoves 2.0*
The moose likes Websphere and the fly likes RAD 7.5  NameAlreadyBoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "RAD 7.5  NameAlreadyBoundException" Watch "RAD 7.5  NameAlreadyBoundException" New topic
Author

RAD 7.5 NameAlreadyBoundException

Nancy O'Connell
Greenhorn

Joined: Jan 27, 2004
Posts: 16
We are upgrading from RAD 7/WAS 6.1 to RAD 7.5 / WAS 7.

Our project currently has multiple ears. On the servers, each ear runs in it's own JVM, but when we test locally, we test multiple ears on the same server. Some of these ears contain the same EJB's - for example, we have a CommonEJB that runs in both EAR_A and EAR_B.

With RAD 7 / WAS 6.1 this works with no problems.

When we try to run the same scenario under RAD 7.5 and WAS 7, we receive the following error:

The com.ejb.CommonHome interface of the Common bean in the CommonEJB.jar module of the EAR_A application cannot be bound to the ejb /com/ejb/CommonHome name location. The com.ejb.CommonHome interface of the Common bean in the CommonEJB.jar module of the EAR_B application has already been bound to the ejb/com//ejb/CommonHome name location.
at com.ibm.ws.runtime.component.EJBContainerImpl.startModule(EJBContainerImpl.java:2728)
at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:3826)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1319)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:609)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:944)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2046)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:110)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:949)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1563)

WSVR0501E: Error creating component com.ibm.ws.runtime.component.CompositionUnitMgrImpl@4eda4eda
com.ibm.ws.exception.RuntimeWarning: javax.naming.NameAlreadyBoundException: The com.Common.ejb.CommonHome interface of the Common bean in the CommonEJB.jar module of the EAR_A application
cannot be bound to the ejb/ejb/CommonHome name location. The com.uhc.edist.Common.ejb.CommonHome
interface of the Common bean in the CommonEJB.jar module of the EAR_B application has already been bound to the ejb/ Common/ejb/CommonHome name location.

I realize that sometimes this message appears as a warning, but here it actually prevents the second EAR from running. There was a similar problem with
WAS 6.1 which was resolved by an update from IBM (PK69778).

We are running WAS 7.0.0.13, and Rational Application Developer Version: 7.5.5.3, Build ID: 20101203_0655.

Does anyone have any ideas?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

You can't deploy the same ejb twice on the same server. You are supposed to be able to set up multiple profiles and start them at the same time. I haven't tried it in the latest version of RAD though.

This shouldn't have worked in RAD 7 either. Is it possible you had multiple server profiles set up and didnt' notice.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Nancy O'Connell
Greenhorn

Joined: Jan 27, 2004
Posts: 16
Thanks for your response, but it does work in RAD 7, on a WAS 6.1 server. We have both ears running on the same server, same profile.
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
I am not sure why RAD/WAS 6.1 allowed you such a configuration. Prior to EJB 3.0 the JNDI info was part of the deployment descriptor so it was on developers to keep it unique. Since EJB 3.0 the JNDI is same as either your local or remote interface, which is again unique.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RAD 7.5 NameAlreadyBoundException
 
Similar Threads
Xerces issue while deploying Web services on Websphere6.1
Installing axis2 (1.5.1) in Websphere 7
WPS 6.1 Server startup error
com.ibm.ejs.container.EJBConfigurationException when deploying ejb ear file to websphere appserver
java.lang.NoSuchMethodError: com/ibm/wsdl/xml/WSDLReaderImpl.<init>(Ljavax/wsdl/factory/WSDLFactory;