Tomcat 5:在 tomcat 加载期间出现 juli 异常
当我启动 tomcat 时,出现以下异常。可以告诉我原因吗? 这是完整的堆栈跟踪。
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)
谢谢 沙斐仪
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需执行以下步骤:
Tomcat 的 bootstrap.jar 用于引用其清单中的文件 bin/tomcat-juli.jar 。这种情况正在发生变化,因为它强制 tomcat 使用特定的库。相反,必须将其添加到 -classpath 行。打开服务器配置,并将 tomcat-juli.jar 添加到类路径中,它将起作用。
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.
听起来 JAR
tomcat-juli.jar
丢失或损坏。检查 Tomcat 发行版存档所在的位置并重新安装。[编辑] 上面的堆栈跟踪显示 org.apache.jasper.servlet.JspServlet 想要这个类。
JspServlet
来自哪里?也许您已经在 Web 应用程序中部署了servlet.jar
?你是否预编译了 JSP 或者其他东西?尝试使用您在服务器上使用的 Tomcat 版本重新编译它们。
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 deployedservlet.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.