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.
in version 12c it is located in weblogic-classes.jar in your lib directory:
C:\wls1213\wlserver\server\lib
Step 1:
Go to
E:\weblogic81\user_projects\domains\mydomain
. Then typeSetenv
command. As followsStep 2:
Weblogic.jar
file is needed by your client application. It may contain in the following pathE:\weblogic81\weblogic81\server\lib\weblogic.jar
. so set the classpath for the this folder or copy this weblogic.jar file into your application-folder so that weblogic.jar file is available to your application first.Step 3:
Go to domain folder in command prompt as shown above and set classpath. To not to disturb other classpaths set classpath as:
Here (
.
) dot represents set classpath to current directory.Step 4:
After classpath set run command STARTWEBLOGIC as follows:
Step 5:
Do not login to weblogic server. If you are already login just log out and write the following code in myeclipse or some other IDE.
Step 6:
Step 7:
Execute the above code and login to weblogic and right click on
myserver>view jndi tree>
you find the bound objects information.