• 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

NameNotFoundException - but the jndi bound

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After played with Stateful and Stateless session bean, I am trying for entity bean (BMP) and I am encountering error one after other.
Actually I have checked the ejb-jar.xml and jboss.xml, there I have configured the Entity Bean - home ref. While the server deploying yhe ear file also, I am getting
"Bound EJB Home 'HelloBMPEntity' to jndi 'ejb/HelloBMPEntity'"

But, when I tried to lookup it from servlet, I am getting the
"javax.naming.NameNotFoundException: HelloBMPEntity not bound" exception






jboss.xml
=========


ejb-jar.xml
===========
 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To see what actually are deployed and named, and their actual JNDI names, you can look at the JNDI VIEW.

When I had this issue, I found in google the below link, which happens to be written by one of Javaranch's bartenders - Jaikiran.

http://jaitechwriteups.blogspot.com/2007/10/why-do-i-get-namenotfoundexception.html

The above will show you how to go to the JNDI VIEW, and other stuff you need to solve this problem.
 
Mike Thomson
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank for your help. It's solving most of my problems with repsect to JNDI lookup..
 
Jesus Angeles
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It also did solve my problem last time. And it still does help me up to now on new projects. Thanks to Jaikiran.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic