• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNDI Exception

 
Giri Prasad
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am trying to access my bean(session) from servlet and invoke methosd on it. I am using the websphere development studio 4.0. I used the ibm-ejb-jar-bnd.xsi(ejb extended editor in the J2EE perspective) to bind the bean.
I am getting the error javax.naming.NameNotFoundException.
Can anyone help?
Tahnks
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look carefully in the console of your server -- did you notice any problems before the "Server open for e-Business" line? If so, try to correct those first...
Kyle
 
Giri Prasad
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. No errors before that line. The http and https ports are open too
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Run dumpNamespace (it's in \plugins\com.ibm.etools.websphere.runtime\bin) and then post both what's in your namespace and the name that you're trying to access your EJB by...
Kyle
 
Giri Prasad
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Kyle
I was refering the bean with its remote interface name in the binding and was using the Home interface name for lookup. Got it now and it is working
Thanks for the reply
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to move this over to the IBM/Websphere forum so that other people can benefit from it.
( Thanks Kyle! )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic