Oops, too quick in guessing the answer after seeing class not found.

org.apache.jasper.servlet.JspServlet is not in servlet.jar. It is in jasper-compiler.jar, which is also commonly found in $CATALINA_HOME/common/lib. But that probably still doesn't matter since I am still guessing servlet.jar (or another common class) is where it shouldn't be.

Make sure your ext/ dir in your java installation does not have any jars like servlet.jar. Also be sure the jars in WEB-INF/lib are needed and not already found in common/lib.

It all comes down to classes being loaded with the wrong classloader. Then when dependent classes need loaded - they might not be found.

Does your app work with these errors below? Or is this from the tomcat install with NO changes at all?

-Tim

Herbert G. Fischer wrote:
And why there is no JspServlet on Tomcat 4.1.24's servlet.jar ???


Tim Funk wrote:


http://tomcatfaq.sourceforge.net/classnotfound.html

Odds are servlet.jar is somewhere it shouldn't be. servlet.jar should be in $CATALINA_HOME/common/lib/ (and only there)

-Tim

Herbert G. Fischer wrote:

Hi again,

Just after starting Tomcat, I'm getting the following
error. I don't know if this is problematic, but I don't
like errors. Anyone here knows what can be wrong??


WebappClassLoader: addRepository(/WEB-INF/classes/)
WebappClassLoader: loadClass(java.lang.Integer, false)
WebappClassLoader: loadClass(java.lang.Number, false)
WebappClassLoader: loadClass(org.apache.jasper.servlet.JspServlet, false)
WebappClassLoader: Searching local repositories
WebappClassLoader: findClass(org.apache.jasper.servlet.JspServlet)
WebappClassLoader: findClassInternal(org.apache.jasper.servlet.JspServlet)
WebappClassLoader: --> Passing on ClassNotFoundException
java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1623)





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to