Where is class weblogic.jndi.WLInitialContextFactory?

blackicecube picture blackicecube · Apr 16, 2009 · Viewed 91.2k times · Source

when trying to execute my jar file I get an exception:

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

I guess this is some kind of missing library on the classpath. Can anyone tell me which jar-file is missing? I can't find the class weblogic.jndi.WLInitialContextFactory anywhere...

Thanks!

P.S.: I already have weblogic 10.0 jar included.

Answer

Nuno Furtado picture Nuno Furtado · Apr 28, 2009

Check your server/lib/ folder to find wliclient.jar.

With Weblogic 12.1.3, you can find it here:
${INSTALL_DIR}/inventory/wlserver/server/lib/wlclient.jar