Skip to Content
Former Member
Apr 20, 2004 at 11:57 PM

Looking up Weblogic EJBs from iView


Hello all!

I am trying to setup an iView that pulls data from some Welblogic EJBs. I am having trouble looking up the weblogic EJBs. I have weblogic.jar in the private\lib\ directory in my .par file, but the call to get the InitialContext fails. Any pointers to resolve this will be much appreciated!

Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");

env.put(Context.PROVIDER_URL, "t3://localhost:7001");

Context ctx = new InitialContext(env);

System.out.println("Got context = "ctx" from classloader: "+c.getClassLoader());

The exception I get is:

Apr 20, 2004 04:22:33 PM com.covigna.ejbs.EJBHomeFactory <clinit>

SEVERE: EJBHomeFactory.static(): Unable to get JNDI Context

javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory. Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory

at org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(

at org.apache.tomcat.util.depend.DependClassLoader12$

at Method)

at org.apache.tomcat.util.depend.DependClassLoader12.loadClass(

at java.lang.ClassLoader.loadClass(

at java.lang.ClassLoader.loadClassInternal(

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(

at com.sun.naming.internal.VersionHelper12.loadClass (