Hi there,
I am using snippet :
public static Context getInitialContext() throws javax.naming.NamingException
{
Hashtable p = new Hashtable(5);
p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://localhost:7001");
return new javax.naming.InitialContext(p);
}
This code compiles but gives an error on runtime saying:
javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.
WLInitialContextFactory. Root exception is java.lang.ClassNotFoundException: we
blogic.jndi.WLInitialContextFactory
Why it is not finding the class ?. Do I am writing something wrong ?. Please write me ?.
thank you,
