• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Look up error....URGENT

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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???
 
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how about lookup using just "AuditBmpHome"??
Kishore.
 
Gaurav Jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its still not working..
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic