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 I got Naming.Name Notfound Exception 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 "I got Naming.Name Notfound Exception" Watch "I got Naming.Name Notfound Exception" New topic

I got Naming.Name Notfound Exception

Sreeanth makam

Joined: Jan 07, 2004
Posts: 3
Hello friends,
I wrote a simple ejb with jndi name "jndisimple".
And i deployed in weblogic6..And If i run jsp which lookup for this this jndi name it is thowing an error as
javax.naming.NameNotFoundException: Name simpleSalaryBean is not bound in this Context
I run this jsp example using tomcat...
Pease help me
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Moving to the EJB/J2EE Forum.
[ January 08, 2004: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
Sergiu Truta
Ranch Hand

Joined: Dec 16, 2003
Posts: 121
you should show us the lookup code and the JNDI name for that
my bet is you use a different JNDI name in the lookup code that the one specified in the deployment descriptor for that bean.
[ January 08, 2004: Message edited by: sergiu truta ] I'm walking the path...
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Browse to the WebLogic console, right-click the server instance, and select "JNDI tree" or something similar. If you find your "simplejndi" entry there, fine. Then check whether your JNDI lookup code uses the same JNDI name.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: I got Naming.Name Notfound Exception
It's not a secret anymore!