Error logging ing application listener of class org. springframework. Web. Context. contextloaderlistener
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. addchildinternal (containerbase. Java: 759)
At org. Apache. Catalina. Core. containerbase. addchild (containerbase. Java: 739)
At org. Apache. Catalina. Core. standardhost. addchild (standardhost. Java: 524)
At org. Apache. Catalina. startup. hostconfig. deploywar (hostconfig. Java: 809)
At org. Apache. Catalina. startup. hostconfig. deploywars (hostconfig. Java: 698)
At org. Apache. Catalina. startup. hostconfig. deployapps (hostconfig. Java: 472)
At org. Apache. Catalina. startup. hostconfig. Start (hostconfig. Java: 1122)
At org. Apache. Catalina. startup. hostconfig. lifecycleevent (hostconfig. Java: 310)
At org. Apache. Catalina. util. lifecyclesupport. firelifecycleevent (lifecyclesupport. Java: 119)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1021)
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)
Some people often report the above errors when deploying a web project. After half a day, I still don't know why. :(
The reason is simple:
First, check whether the spring. jar package is added under your project WEB-INF/lib directory? If no, add spring. jar to the lib directory.
Second, go to the Web server application deployment directory (if Tomcat is webapps, if JBoss is server/{server name (default )}/) view the war package just deployed, find the WEB-INF/lib directory inside, down or find spring. jar package, sometimes eclipse automatic deployment problems, WEB-INF/lib directory during the deployment of the war package does not hit.
In the final analysis, there is a problem in the two phases of your project construction or application deployment. For the next reason, the best solution is to manually generate the war package and copy it to the corresponding application deployment directory.
From: http://blog.163.com/gr_neverlose/blog/static/2350904320099301732573/