title: JNDI lookup in weblogic 12c
body: <p>I have a legacy code with JNDI template which is:</p>
  
  <pre><code>&lt;bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate"&gt;
      &lt;property name="environment"&gt;
          &lt;props&gt;
              &lt;prop key="java.naming.factory.initial"&gt;${java.naming.factory.initial}&lt;/prop&gt;
              &lt;prop key="java.naming.provider.url"&gt;${java.naming.provider.url}&lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>and <code>java.naming.factory.initial</code> is <code>weblogic.jndi.WLInitialContextFactory</code> and <code>java.naming.provider.url</code> is <code>t3://localhost:7001</code>.
  In weblogic <code>10.3.6.0</code> everything work fine, but in weblogic <code>12.2.1.3.0</code> I'm getting the following exception:</p>
  
  <pre><code>java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory
  </code></pre>
  
  <p>Here is an exert of classpath:</p>
  
  <pre><code>CLASSPATH=C:\PROGRA~1\Java\JDK18~1.0_1\lib\tools.jar;D:\Oracle\MIDDLE~1\ORACLE~1\wlserver\server\lib\weblogic.jar;
  </code></pre>