title: Eclipse Build Path Nesting Errors
body: <p>I'm working on a simple JSP/Servlet/Tomcat webapp for my class. The professor asked us to use a folder structure that is slightly different than the default dynamic web project structure. Rather than using the webcontent folder he wants all of our source code under src/main/java and src/main/webapp.</p>
  
  <p>When I run the app my welcome file displays fine, but when I try to access my servlets I get:</p>
  
  <pre><code> Http 500 SEVERE: Allocate exception for servlet InitDb
  </code></pre>
  
  <p>java.lang.ClassNotFoundException. I'm pretty sure it's a build path error. I have final/src on the build path but I am receiving the warning  </p>
  
  <pre><code>"Cannot nest 'final/src/main/webapp/WEB-INF/classes' inside 'final/src'. To enable the    nesting exclude 'main/' from 'final/src'
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/WbiGC.jpg" alt="enter image description here"></p>
  
  <p>I have this in my deployment assembly: </p>
  
  <pre><code>&lt;wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/&gt; 
  </code></pre>
  
  <p>When I exclude main/ the warning goes away, but it doesn't fix the problem. I would appreciate any advice. Thanks. </p>