shafi
shafi

Reputation: 11

Tomcat 5: Getting juli exception during tomcat load

While I start tomcat, I am getting the following exception. Could you let me know the reason. Here is the complete stacktrace.

java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.apache.jasper.servlet.JspServlet.<init>(JspServlet.java:61)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

Thanks Shafi

Upvotes: 1

Views: 2153

Answers (2)

Rupeshit
Rupeshit

Reputation: 1466

Just perform following steps:

Tomcat's bootstrap.jar used to reference the file bin/tomcat-juli.jar in it's manifest. That is changing since it forced tomcat to use a specific library. Instead, it has to be added to the -classpath line. Open your server configuration, and add tomcat-juli.jar to the classpath, and it will work.

Upvotes: 1

Aaron Digulla
Aaron Digulla

Reputation: 328774

That sounds like the JAR tomcat-juli.jar is missing or corrupt. Check the Tomcat distribution archive where it should be and install it again.

[EDIT] The stack trace above says org.apache.jasper.servlet.JspServlet wants this class.

Where is JspServlet from? Maybe you have deployed servlet.jar with your web app?

Did you precompile your JSPs or something? Try to recompile them with the version of Tomcat that you use on the server.

Upvotes: 0

Related Questions