title: Stubborn/irrational java.lang.ClassNotFoundException in weblogic ADF, class in JAR
body: <p>I'm new to ADF/JDeveloper and am struggling with the typical 'class not found' - hopefully there's a trick to this?</p>
  
  <p>Using: JDeveloper 12c and the integrated web logic server.</p>
  
  <p>Situation: A Servlet is registered in web.xml, but the class is in a JAR</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;description&gt;..&lt;/description&gt;
      &lt;servlet-name&gt;ABCHandlerServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.mine.ControlServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
      &lt;param-name&gt;licenseKey&lt;/param-name&gt;
      &lt;param-value&gt;123&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/servlet&gt;
  ...
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;ABCHandlerServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/servlet/GaugeServlet/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;ABCHandlerServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/mapproxy/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;resources&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/bi/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;ABCHandlerServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.ABC&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;  
  </code></pre>
  
  <p>com.mine.ControlServlet, which it reports at deployment cannot be found, is in a JAR file.</p>
  
  <p>The JAR file is under</p>
  
  <p>ViewController/Application Sources/META-INF/lib/myjar.jar</p>
  
  <p>I've triple checked that the class is inside that JAR.</p>
  
  <p>I've also tried adding that JAR to the project classpath, although that doesn't seem necessary (didn't make a difference anyway).</p>
  
  <p>FWIW the JAR/Servlet has been used many times in a non ADF environment, so I doubt that the problem is within the JAR. </p>