jQuery in Action, 2nd edition*
The moose likes EJB and other Java EE Technologies and the fly likes Look up error....URGENT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Look up error....URGENT" Watch "Look up error....URGENT" New topic
Author

Look up error....URGENT

Gaurav Jain
Ranch Hand

Joined: Mar 11, 2004
Posts: 108
I am trying to look up for a BMP in my WSAD.
The jndi name for the BMP is ejb/com/td/bmp/laseraws/bean/AuditBmpHome.
This name was generated by WSAD when i created the bean.
When i try to look up for the bean using the InitialContext object, i get the following error:
[Root exception is org.omg.CosNaming.NamingContextPackage.NotFound]
I have double checked the deployment desctiptor,class and package name and it seems that everthing is in order.
I have also tried java:comp/env/ejb/com/td/bmp/laseraws/bean/AuditBmpHome as the look up name but i get the same error.
What could be the problem???
Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
how about lookup using just "AuditBmpHome"??
Kishore.


Kishore
SCJP, blog
Gaurav Jain
Ranch Hand

Joined: Mar 11, 2004
Posts: 108
Its still not working..
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I think you are using local Interfaces. Then it is not working with the jndi Name. Create a local reference to your BMP and then query for java:comp/env/$YourReference
Hope that helps
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Look up error....URGENT
 
Similar Threads
Unable to Find EJB in JNDI
Local EJB lookup problem
Websphere Application Developer
ejb local home problems
remote ejb calls