my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes INITIAL_CONTEXT_FACTORY Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "INITIAL_CONTEXT_FACTORY" Watch "INITIAL_CONTEXT_FACTORY" New topic
Author

INITIAL_CONTEXT_FACTORY

alec stewart stewart
Ranch Hand

Joined: Dec 23, 2003
Posts: 71
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

Joined: Feb 24, 2004
Posts: 59
Hi,
Try including weblogic.jar while compiling in your classpath. This should solve your problem.
Regards
Johnny
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: INITIAL_CONTEXT_FACTORY