Note that there are some explanatory texts on larger screens.

plurals
  1. POeclipse/tomcat: deploy doesn't work any more (ClassNotFoundException)
    text
    copied!<p>I'm running Eclipse Helios Service Release 1, with Tomcat 7.0.12 in Linux Ubuntu Natty Narwhal.</p> <p>I've been happily hot re-deploying my webapp until it stopped working for apparently no reason. The following exception is displayed:</p> <pre><code>SEVERE: Allocate exception for servlet Index java.lang.ClassNotFoundException: obliquid.servlet.Index at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521) </code></pre> <ul> <li>In <em>Servers</em> tab I've "Tomcat v7.0 Server at localhost [Started,Synchronized]</li> <li>My project appears as a child of Tomcat v7.0 Server</li> <li>In Properties, Java Build Path, Source I've <em>Project/src</em> Source folder</li> <li>In Properties, Web Deployment Assembly, I've the following mappings: <em>/WebContent</em> -> <em>/</em>, <em>/src</em> -> <em>/WEB-INF/classes</em>, <em>/test</em> -> <em>/build/classes</em></li> <li>My <em>src</em> directory contains a Servlet in <em>obliquid/servlet/Index.java</em></li> <li>I tried already to click on <em>Clean Module Work Directory...</em> and <em>Publish</em></li> <li>I tried to stop and start the Server from within Eclipse Servers tab</li> </ul> <p>What else should I check? Thank you.</p> <p><strong>UPDATE</strong> Despite now I'm working with the new project, I came back to check the old one, and mysteriously now it's working. I think I won't be able to find what has happened. </p> <p>However today with the new project, I had 404 errors with no apparent reason and I found out that right clicking on the Tomcat server and selecting "Clean..." can be useful. Maybe it could have helped.</p> <p>Selecting "Clean..." says: "Clean will discard all publish state and republish from scratch. Are you sure you want to clean all published resources?". Selecting yes, I solved the problem</p> <p><strong>UPDATE 2</strong> It happened again on the new project. 404 errors, this time they don't go away.</p> <pre><code>Stop -&gt; Clean... -&gt; Start (404) Stop -&gt; Clean Tomcat Work Directory... -&gt; Start (404) Stop -&gt; Clean Tomcat Work Directory... -&gt; Clean... -&gt; Start (404) Stop -&gt; Remove on the application -&gt; Clean... -&gt; Run As -&gt; Run on Server -&gt; (404) Exit Eclipse, Start Eclipse Start the server -&gt; (404) </code></pre> <p><strong>UPDATE 3</strong> It turned out that this time I just didn't notice an exception caused by a listener-class during startup. After solving the problem, it worked. Guess I should stop working at 3 AM.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload