File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes NameNotFoundException - but the jndi bound Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "NameNotFoundException - but the jndi bound" Watch "NameNotFoundException - but the jndi bound" New topic
Author

NameNotFoundException - but the jndi bound

Mike Thomson
Ranch Hand

Joined: Nov 07, 2007
Posts: 115
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
===========
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2036
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

Joined: Nov 07, 2007
Posts: 115
Thank for your help. It's solving most of my problems with repsect to JNDI lookup..
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2036
It also did solve my problem last time. And it still does help me up to now on new projects. Thanks to Jaikiran.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NameNotFoundException - but the jndi bound
 
Similar Threads
JBoss 4.2.2 Server Starting Issue
SB has problem looking up the EB via JNDI.
How to get the datasource from Bean through deployment descriptor
Jboss 3.0 + JNDI problem
Simple & Basic EJB application -- Help is needed