aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes jndi looup error 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 looup error" Watch "jndi looup error" New topic
Author

jndi looup error

James Foster
Greenhorn

Joined: Nov 04, 2003
Posts: 10
I am using j2sdk 1.4 and tried the simple Lookup example in the jndi tutorial. I get following. I even put jndi.jar in jre\lib\ext. But no use. Any hints.
javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

You dont need to add jndi.jar file to lib\ext dir. Read this
http://java.sun.com/products/jndi/tutorial/getStarted/faq/runtime.html
[ November 20, 2003: Message edited by: Pradeep Bhat ]

Groovy
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: jndi looup error