Hi! Friends,
Am trying to access a Stateless
EJB(deployed on Weblogic 8.1) through a
servlet running on 9i AS, but is giving an exception as below :

NamingException Thrown : Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
The code snippet in my Servlet is as follows:
Properties prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
prop.put(Context.PROVIDER_URL, "t3://10.127.0.1:7001");
Context context = new InitialContext(prop);
I have put weblogic.jar in lib directory under WEB-INF.
It's working fine if the Servlet is called from Weblogic itself.
Any help is highly appreciated. Thanks in advance.
-Navin.