开发者

Tomcat 5: Getting juli exception during tomcat load

开发者 https://www.devze.com 2023-01-17 22:29 出处:网络
While I start tomcat, I am getting the following exception. Could you let me know the reason. Here is the complete stacktrace.

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(Nat开发者_如何学PythoniveConstructorAccessorImpl.java:39)

Thanks Shafi


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消