File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes JNDI Lookup on WebSphere 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JNDI Lookup on WebSphere 6.0" Watch "JNDI Lookup on WebSphere 6.0" New topic
Author

JNDI Lookup on WebSphere 6.0

Nitesh Varma
Greenhorn

Joined: Mar 14, 2005
Posts: 1
I'm trying to look up a Session Bean that I've deployed on WebSphere 6.0 and I'm running into the following problem. I have naming.jar, namingclient.jar and namingserver.jar in the client classpath and obviously the class com.ibm.WsnOptimizedNaming.NamingContextOperations is not in any of these jars. Please could someone point out which jar file is needed.

java.lang.NoClassDefFoundError: com/ibm/WsnOptimizedNaming/NamingContextOperations
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:104)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:255)
at javax.naming.InitialContext.init(InitialContext.java:231)
at javax.naming.InitialContext.<init>(InitialContext.java:207)
at com.varma.TestHello.main(TestHello.java:15)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI Lookup on WebSphere 6.0
 
Similar Threads
JNDI lookup function, Cant create Initial Context
com.ibm.websphere.ce.cm.Stale Connection Exception
Websphere 6 support for J2EE 1.5
setting system property in RAD
Unable to do a jndi lookup. Getting Exception