aspose file tools*
The moose likes Websphere and the fly likes JNDI Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "JNDI Exception" Watch "JNDI Exception" New topic
Author

JNDI Exception

Giri Prasad
Ranch Hand

Joined: Mar 08, 2001
Posts: 56
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

Joined: Aug 10, 2001
Posts: 3892
    
    5
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


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Giri Prasad
Ranch Hand

Joined: Mar 08, 2001
Posts: 56
No. No errors before that line. The http and https ports are open too
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
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

Joined: Mar 08, 2001
Posts: 56
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

Joined: May 10, 2000
Posts: 1913
    
    6
I'm going to move this over to the IBM/Websphere forum so that other people can benefit from it.
( Thanks Kyle! )
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI Exception