File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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
 
Consider Paul's rocket mass heater.
 
subject: INITIAL_CONTEXT_FACTORY