wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes JNDI look error after ejb link to a remote EJB deployed as part of another EAR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JNDI look error after ejb link to a remote EJB deployed as part of another EAR" Watch "JNDI look error after ejb link to a remote EJB deployed as part of another EAR" New topic
Author

JNDI look error after ejb link to a remote EJB deployed as part of another EAR

Suhas Madap
Ranch Hand

Joined: Aug 29, 2006
Posts: 52
Hi,

I'm getting error while doing a JNDI look-up of another EJB which is deployed as part of another EAR from a EJB method.

ConverterBean and it's Interface are package Converter-EJB.jar which is deployed as Converter-App.ear.
TaskServiceBean, it's Remote interface are package Task-EJB.jar which is deployed as Task-App.ear

Here is my sample EJB:

ConverterBean:



ConverterService.java:



ejb-jar.xml:


weblogic-ejb.xml:


Client program:



First, I tried final String EJB_REF_LOOK_UP = "java:comp/env/ejb/TaskServiceBean";

[b]Exception:[/b]
Context lookup for bean is failed com.suhas.madap.ejb.ConverterService, invokeTaskService method
javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/TaskServiceBean in /app/ejb/converter-ejb.jar#ConverterBean.; remaining name 'comp/env/ejb/TaskServiceBean'


second, final String EJB_REF_LOOK_UP = "ejb/TaskServiceBean";

[b]Exception:[/b]
Context lookup for bean is failed com.suhas.madap.ejb.ConverterService, invokeTaskService method
javax.naming.NameNotFoundException: Unable to resolve 'ejb.TaskServiceBean'. Resolved 'ejb'; remaining name 'TaskServiceBean'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)


Any pointers to resolve this issue will be very helpful.


Thank you,<br /> <br />Suhas K Madap<br /> <br />If you understand what you're doing, you're not learning anything."
 
Don't get me started about those stupid light bulbs.
 
subject: JNDI look error after ejb link to a remote EJB deployed as part of another EAR
 
Similar Threads
i am trying to get this jndi lookup right. Need you hint.
MAPPING configuration error
Unable to Access Stateles Session bean from Client
ejb hanging
Lookup strings question