All Things Techie With Huge, Unstructured, Intuitive Leaps

Tomcat Startup Problem

I had a strange issue. I used Apache Tomcat with Eclipse, and all of a sudden, Tomcat wouldn't start. It threw the exception:

java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader

This was strange.

There are two fixes. DevLoader is not provided with Tomcat, so you can put the DevLoader jar in your classpath.


You can navigate to ~tomcat_home/conf/Catalina/localhost/. In that directory, you will find a file with the name of your project and the .xml extension. It is a context.xml file. Open the file with a file editor.
You will find this line:

Remove the line and Tomcat will start again.

No comments:

Post a Comment