Recently, I was working on the spring + struts2 + ibatis project. Yesterday, the eclipse server started normally. As a result, an error is always reported as follows:
Severe: Error Handling ing application listener of class org. springframework. Web. Context. contextloaderlistener
Java. Lang. classnotfoundexception: org. springframework. Web. Context. contextloaderlistener
At org. Apache. Catalina. loader. webappclassloader. loadclass (webappclassloader. Java: 1352)
At org. Apache. Catalina. loader. webappclassloader. loadclass (webappclassloader. Java: 1198)
At org. Apache. Catalina. Core. standardcontext. listenerstart (standardcontext. Java: 3677)
At org. Apache. Catalina. Core. standardcontext. Start (standardcontext. Java: 4187)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1013)
At org. Apache. Catalina. Core. standardhost. Start (standardhost. Java: 718)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1013)
At org. Apache. Catalina. Core. standardengine. Start (standardengine. Java: 442)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 450)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 709)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 551)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (nativemethodaccessorimpl. Java: 39)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (delegatingmethodaccessorimpl. Java: 25)
At java. Lang. Reflect. method. Invoke (method. Java: 585)
At org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 294)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 432)
Many people say that there is no spring package on the Internet, but I am not in favor of it because I was able to start it yesterday, so it should not be the problem.
Finally, I found that it may be a tomcat cache problem. The solution is:
Delete all the servers in eclipse, clean the project, and re-create a server to run. This solves the problem.