Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I got Naming.Name Notfound Exception

 
Sreeanth makam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the EJB/J2EE Forum.
bear
[ January 08, 2004: Message edited by: Bear Bibeault ]
 
Sergiu Truta
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic