Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

INITIAL_CONTEXT_FACTORY

 
alec stewart stewart
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which initial_context_factory should i use in case of weblogic 8.1
when i am using
prop.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
it gives the error:
javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContex
tFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFact
ory]
 
John Vergis
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Try including weblogic.jar while compiling in your classpath. This should solve your problem.
Regards
Johnny
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic