Org. springframework. web. context. ContextLoaderListener solution,

Source: Internet
Author: User

Org. springframework. web. context. ContextLoaderListener solution,

 

Recently deployed ssm project in tomcat. When tomcat is started, the org. springframework. web. context. ContextLoaderListener error is reported.

Severe: Error Processing ing application listener of class org. springframework. web. context. contextLoaderListenerjava. lang. classNotFoundException: org. springframework. web. context. contextLoaderListener at org. apache. catalina. loader. webappClassLoaderBase. loadClass (WebappClassLoaderBase. java: 1892) at org. apache. catalina. loader. webappClassLoaderBase. loadClass (WebappClassLoaderBase. java: 1735) at org. apache. catalina. core. defaultInstanceManager. loadClass (DefaultInstanceManager. java: 495) at org. apache. catalina. core. defaultInstanceManager. loadClassMaybePrivileged (DefaultInstanceManager. java: 477) at org. apache. catalina. core. defaultInstanceManager. newInstance (defainstinstancemanager. java: 113) at org. apache. catalina. core. standardContext. listenerStart (StandardContext. java: 5026) at org. apache. catalina. core. standardContext. startInternal (StandardContext. java: 5633) at org. apache. catalina. util. lifecycleBase. start (LifecycleBase. java: 145) at org. apache. catalina. core. containerBase. addChildInternal (ContainerBase. java: 1009) at org. apache. catalina. core. containerBase. addChild (ContainerBase. java: 985) at org. apache. catalina. core. standardHost. addChild (StandardHost. java: 652) at org. apache. catalina. startup. hostConfig. deployDirectory (HostConfig. java: 1296) at org. apache. catalina. startup. hostConfig $ DeployDirectory. run (HostConfig. java: 2038) at java. util. concurrent. executors $ RunnableAdapter. call (Executors. java: 471) at java. util. concurrent. futureTask. run (FutureTask. java: 262) at java. util. concurrent. threadPoolExecutor. runWorker (ThreadPoolExecutor. java: 1145) at java. util. concurrent. threadPoolExecutor $ Worker. run (ThreadPoolExecutor. java: 615) at java. lang. thread. run (Thread. java: 744)

This error is probably because the jar is not in the WEB-INF/lib directory when you confirm that all spring configurations are correct.

My solution is to manually add the jar under the WEB-INF/lib.

In eclipse or myeclipse, right-click the project, click Properties, and enter D

Click Deployment Assembly and take a closer look at whether the WEB-INF directory is missing something?

That's right! The jar package is missing.

Click add and select Java Build Path Entries.

Continue to select Maven Dependencies and click Finish.

 

 

 

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.