title: NameNotFoundException: While trying to lookup 'jdbc' only when publishing from Eclipse Kepler but not Indigo
body: <p>I'm able to publish my web-app to an Oracle Weblogic 12c (12.1.1) AdminServer from Eclipse Indigo 3.7.2 with oepe 12.1.1.1.1</p>
  
  <p>However, the exact same web-app imported into Eclipse Kepler 4.3.1 with oepe 12.1.2.2 fails to publish with the following (fairly well trodden) exception and I'm trying to work out why?...</p>
  
  <blockquote>
    <p>NameNotFoundException: While trying to lookup 'jdbc.oraclexe' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/oraclexe']; Link Remaining Name: 'jdbc/oraclexe'</p>
  </blockquote>
  
  <p>The Weblogic 12c data source is definitely available and I have to assume its configured correctly as the application deploys and runs with no problems when published from Indigo.</p>
  
  <p>I'm also assuming the mappings in applicationContext.xml, web.xml and weblogic.xml are corrects as again there are no problems when published from Indigo. The mappings are as follows...</p>
  
  <p><strong>src\main\webapp\WEB-INF\spring\applicationContext.xml</strong></p>
  
  <pre><code>&lt;bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
   &lt;property name="jndiName" value="java:comp/env/jdbc/oraclexe" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p><strong>src\main\webapp\WEB-INF\web.xml</strong></p>
  
  <pre><code>&lt;resource-ref&gt;
   &lt;description&gt;Oracle Weblogic Connection Pool (oraclexe)&lt;/description&gt;
   &lt;res-ref-name&gt;jdbc/oraclexe&lt;/res-ref-name&gt;
   &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
   &lt;res-auth&gt;Container&lt;/res-auth&gt;
   &lt;mapped-name&gt;jdbc/oraclexe&lt;/mapped-name&gt;
  &lt;/resource-ref&gt;
  </code></pre>
  
  <p><strong>build\weboutput\WEB-INF\weblogic.xml</strong></p>
  
  <pre><code>&lt;resource-description&gt;
   &lt;res-ref-name&gt;jdbc/oraclexe&lt;/res-ref-name&gt;
   &lt;jndi-name&gt;oraclexe&lt;/jndi-name&gt;
  &lt;/resource-description&gt;
  </code></pre>
  
  <p>I am wondering if the weblogic.xml isn't being made available during deployment (i.e its not being copied to the src\main\webapp\WEB-INF folder) rather than a problem with the mappings between jndiName/resource-ref/res-ref-name themselves? I've tried putting weblogic.xml directly in the src\main\webapp\WEB-INF folder but I get the same exception.</p>
  
  <p>My only other thought is that Indigo oepe 12.1.1.1.1 is happy publishing to Weblogic 12.1.1 but Kepler oepe 12.1.2 isn't and I should be publishing to a Weblogic 12.1.2 server?</p>