Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[EJB:011055] You must set a different JNDI name in the weblogic-ejb-jar.xml deployment descriptor

 
Nishka rao
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I need an urgent solution to my issue with weblogic deployment.
I have one ear E1 deployed in my weblogic cluser C1 and it is using jar J1 which is using an EJb1 . Now i am going to deploy another Ear E2 with jar J2 which is using same ejb1 and same jndi name.
when i am trying to depoy second ear i am getting followinf error -

[wldeploy] [EJB:011055]Error deploying the EJB 'RBRMRuleServiceSessionEJB(Application: rbrm-trades-batch-14L1.1.2-14.1.0.6.1, EJBComponent: rbrm-rulesmgmt-14L1.1.2-14.1.0.6.jar)', the JNDI name 'com/jpmorgan/gcrm/rbrm/rulesmgmt/RBRMRuleServiceSessionEJB' is already in use. You must set a different JNDI name in the weblogic-ejb-jar.xml deployment descriptor or corresponding annotation for this EJB before it can be deployed.
[wldeploy] at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:1051)
[wldeploy] at weblogic.ejb.container.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:1001)
[wldeploy] at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1275)
[wldeploy] at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:427)
[wldeploy] at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)


please help what could be the solution as i have to keep that ejb in both ear file.

 
German Gonzalez-Morris
Ranch Hand
Posts: 265
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are deploying to a cluster then both ejb must have different jndi names.

It is correct the error you are facing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic