Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Look up error....URGENT

 
Gaurav Jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how about lookup using just "AuditBmpHome"??
Kishore.
 
Gaurav Jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its still not working..
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic