File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

jndi looup error

James Foster

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: 8927

You dont need to add jndi.jar file to lib\ext dir. Read this
[ November 20, 2003: Message edited by: Pradeep Bhat ]

I agree. Here's the link:
subject: jndi looup error
It's not a secret anymore!