• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jndi looup error

 
James Foster
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic