NoClassDefFoundError (Digester) with Tomcat and MyFaces

前端 未结 2 1971
走了就别回头了
走了就别回头了 2021-01-07 11:48

I was using Tomcat with Eclipse nicely. Now I cannot start the server. I get the following exception when trying to start. Things were working great. I\'m not aware of havin

相关标签:
2条回答
  • 2021-01-07 11:59
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.digester.Digester
    

    This just tells you that the mentioned class is missing in the runtime classpath. As the package name hints, it's Apache Commons Digester which is available at http://commons.apache.org/digester. If you download the JAR file and drop it in one of the paths covered by the webapp's runtime classpath, such as /WEB-INF/lib, then this problem should disappear.

    0 讨论(0)
  • 2021-01-07 12:10

    I had the same problem. Webapp and Tomcat in Eclipse ran nice, then eclipse freezed; I had to kill it with TaskManager. However when I restarted tomcat, above error java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester appeared.

    It did not make sense because the webapp ran nicely before. I solved it by cleaning the eclipse tomcat webapp directory.

    1. Go to the Servers tab -> Right click on your webapp -> Clean Module directory.
    2. Go to the Servers tab -> Right click on used Tomcat instance -> Clean...

    After that the error disappeared and the webapp ran again like before.

    0 讨论(0)
提交回复
热议问题