File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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"??

SCJP, blog
Gaurav Jain
Ranch Hand

Joined: Mar 11, 2004
Posts: 108
Its still not working..
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:
subject: Look up error....URGENT
It's not a secret anymore!