About java. Lang. classnotfoundexception: org. springframework. Web. Context. contextloaderlistener

Source: Internet
Author: User

This problem occurs when Tomcat is started when struts2 + hibernate + spring is set up.

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: 1358)
At org. Apache. Catalina. loader. webappclassloader. loadclass (webappclassloader. Java: 1204)
At org. Apache. Catalina. Core. standardcontext. listenerstart (standardcontext. Java: 3770)
At org. Apache. Catalina. Core. standardcontext. Start (standardcontext. Java: 4336)
At org. Apache. Catalina. Core. containerbase. addchildinternal (containerbase. Java: 761)
At org. Apache. Catalina. Core. containerbase. addchild (containerbase. Java: 741)
At org. Apache. Catalina. Core. standardhost. addchild (standardhost. Java: 525)
At org. Apache. Catalina. startup. hostconfig. deploydirectory (hostconfig. Java: 920)
At org. Apache. Catalina. startup. hostconfig. deploydirectories (hostconfig. Java: 883)
At org. Apache. Catalina. startup. hostconfig. deployapps (hostconfig. Java: 492)
At org. Apache. Catalina. startup. hostconfig. Start (hostconfig. Java: 1138)
At org. Apache. Catalina. startup. hostconfig. lifecycleevent (hostconfig. Java: 311)
At org. Apache. Catalina. util. lifecyclesupport. firelifecycleevent (lifecyclesupport. Java: 120)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1023)
At org. Apache. Catalina. Core. standardhost. Start (standardhost. Java: 719)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1015)
At org. Apache. Catalina. Core. standardengine. Start (standardengine. Java: 443)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 448)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 710)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 552)
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: 597)
At org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 288)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 413)
16:45:28 org. Apache. Catalina. Core. standardcontext listenerstart
Severe: skipped installing application listeners due to previous error (s)

I checked through the Internet and found that many people encountered such problems, but they did not solve my problems. Finally, I found that this class was not found in the imported package, I checked carefully and found that a package was missing, I used spring3.2 version, less spring-web-3.2.0.jar this package, import this package, the problem is resolved immediately !, Hope to solve other people's problems!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.