Meaningless Drivel is fun!*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 61449
    
  67

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I got Naming.Name Notfound Exception