title: Trouble calling servlet
body: <p>I am getting this message: <code>SEVERE: Error loading WebappClassLoader</code>.<br>
  Many people have posted this problem online, I haven't found yet a good solution for this problem.</p>
  
  <p>What I am trying to do is simply call a servlet from a JSP page (using AJAX). problem is I am getting an <code>Internal server error</code>. Anyone have any idea?</p>
  
  <p>In case it makes a difference, I'm using eclipse and Tomcat6.</p>
  
  <p>Full error:</p>
  
  <pre><code>SEVERE: Error loading WebappClassLoader
    context: /Shaot
    delegate: false
    repositories:
      /WEB-INF/classes/
  ----------&gt; Parent Classloader:
  org.apache.catalina.loader.StandardClassLoader@f11404
   controller.UserController
  java.lang.ClassNotFoundException: controller.UserController
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Unknown Source)
  12/07/2011 02:29:14 org.apache.catalina.core.StandardWrapperValve invoke
  SEVERE: Allocate exception for servlet UserController
  java.lang.ClassNotFoundException: controller.UserController
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>Called with AJAX using (JQuery) when the url of the AJAX call is <code>/NameOfTheProject/UserController</code></p>