Where is class weblogic.jndi.WLInitialContextFactory?

后端 未结 10 1004
无人共我
无人共我 2021-02-13 15:33

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

javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory 
[         


        
10条回答
  •  醉梦人生
    2021-02-13 16:26

    I faced the same issue and it's fixed now :)

    The fix is, to go to WebLogic server and navigate to /Oracle/Middleware/wlserver_10.3/server/lib/ and execute the below command.

    Command: java -jar wljarbuilder.jar -profile wlfullclient5

    The above command creates a jar file with all the jar's inside WebLogic server /lib folder and place it in your client java code build path Eclipse and craetes runnable JAR file and place this wlfullclient5.jar file in server/lib folder as well.

    Hope this helps! Kindly let me know if you have any issues.

提交回复
热议问题