This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Author

I got Naming.Name Notfound Exception

Sreeanth makam
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

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

[Asking smart questions] [Bear's FrontMan] [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.
bean.
[ January 08, 2004: Message edited by: sergiu truta ]

...watch me...as I'm walking the path...
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: I got Naming.Name Notfound Exception
 
Similar Threads
Simple Hibernate Help (Im Noob)
JTA objects
Deploy EJB in Websphere4.0
Problem with EJB injection in JSP
EJB failover