[英]Server Tomcat v9.0 Server at localhost failed to start is the message in eclipse
Whenever I try to start the server in eclipse, the above message crops up. 每当我尝试在eclipse中启动服务器时,以上消息就会出现。 The following is the error message in the console 以下是控制台中的错误消息
java.lang.NoClassDefFoundError: org/apache/tomcat/util/digester/Rule
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:269)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:465)
Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.util.digester.Rule
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 6 more
Looks like your Tomcat jars were corrupted. 看起来您的Tomcat jar已损坏。
Backup the Webapps folder inside Tomcat Folder. 备份Tomcat文件夹中的Webapps文件夹。
Remove/Un-install Tomcat. 删除/卸载Tomcat。
Re-install the Tomcat and Copy paste Webapps folder and restart server in Eclipse IDE. 重新安装Tomcat并复制粘贴Webapps文件夹,然后在Eclipse IDE中重新启动服务器。
If you don't want already deployed apps in Tomcat, re-install the tomcat. 如果您不想在Tomcat中已经部署的应用程序,请重新安装tomcat。
In your project explorer in eclipse, look for Servers folder. 在Eclipse中的项目浏览器中,查找“服务器”文件夹。 Delete it and uninstall the Tomcat server as well. 删除它并卸载Tomcat服务器。 Install the Tomcat server again and configure your web app during the installation. 再次安装Tomcat服务器,并在安装过程中配置Web应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.