Tomcat failing to start with ClassNotFoundException
You have broken your installation, probably before you found apache-tomcat-util-5.23.jar
and most certainly after adding that JAR file to your installation. That JAR you added was from a Tomcat version that is many years old and incompatible with your newer version.
Remove your existing Tomcat installation (but save the webapps/
directory if you put anything in there you want to keep) and reinstall.
If you are still getting that error, check to make sure that your IDE is configured correctly: Tomcat comes with every JAR it needs to launch, so if it won't start, it's because of a misconfiguration with the IDE's integration.
![Vinod Kumar Rai](https://lh3.googleusercontent.com/-nnXcjDxDjmI/AAAAAAAAAAI/AAAAAAAAAMQ/RE2HSHogSzo/photo.jpg?sz=256)
Comments
-
Vinod Kumar Rai about 2 years
I'm using Tomcat v7.0 and with Eclipse IDE for a Webapp. When trying to start the server , I get the below
ClassNotFoundException
java.lang.NoClassDefFoundError: org/apache/tomcat/util/digester/Rule at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2585) at java.lang.Class.getConstructor0(Class.java:2885) at java.lang.Class.newInstance(Class.java:350) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:239) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:426) Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.util.digester.Rule at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 6 more
On searching, I found the apache-tomcat-util 5.23 jar containing the above class but after adding the jar to the launch configuration of Tomcat I get a series of other errors. The same server installation works good in a different work space with a different webapp. What is the issue here?