title: Classes not loading from Jar file on TomCat
body: <p>I'm trying to migrate from webLogic to Tomcat and Created 2 Dynamic projects, Project 1 and Project 2. Project 1 is deployed on Tomcat but needs resources of project 2 to run. </p>
  
  <p>I below few lines of code in web.xml </p>
  
  <pre><code>&lt;display-name&gt;project 1&lt;/display-name&gt;
  &lt;description&gt;Project 1 Application&lt;/description&gt;
  
  &lt;!-- Http session monitor --&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;HttpSessionMonitor&lt;/listener-class&gt;
  &lt;/listener&gt;
  </code></pre>
  
  <p>But when I start tomcat I get "No Class Def found Error"</p>
  
  <p>I have tried the below methods to fix the issue but none of them worked.</p>
  
  <ol>
  <li>Added the Jar file of Project 2 in Build path of Project 1.</li>
  <li>Added the Jar file of project 2 in Deployment Assembly of project 1, the jar file of project 2 i.e., project2.jar shows up in WEB_INF/lib folder.</li>
  <li>Created a new folder in project 1 and linked the resources of Project 2</li>
  </ol>
  
  <p>Any suggestions for this error?
  My project 1 is so tightly dependent of project 2 that without project 2 , 1 is so dumb.</p>