Where is class weblogic.jndi.WLInitialContextFactory?

后端 未结 10 1008
无人共我
无人共我 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:11

    Check the following tag in your build.xml

    property name="WLS_HOME" value="${env.WLS_HOME}"

    where WLS_HOME=c:\weblogic\wls\wlserver if running on windows i kept trying to run a simple hello world program and it kept throwing

    *run:

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

    once i changed the above mentioned tag it in the build.xml it worked fine

提交回复
热议问题