Severity: Error Configuring Application Listener of Class Org.springframework.web.context.ContextLoaderList

Source: Internet
Author: User

Recently in the deployment of the war file with idea, there is always a failure to deploy the error, initially did not care, but now more and more, have to pay attention to, and then on Baidu Search, and then have a variety of statements

1, the error message is:

 in the appropriate container log file

According to the error message, said to be a listener load failed, failure reason please look at the container log file, my idea configuration of Tomcat is their own local tomcat, and then into the local directory A look, wood has, then this log put where? Then start looking for where this log file is. Start Baidu ...

Experienced a variety of Baidu, and then finally came to the result is here

C:\Users\Administrator\. Intellijidea14\system\tomcat\ unnamed _zngkpt\logs

OK, the first step to complete, found the log file, then the log file inside the error message is what? First, there are a few log messages

According to the time, then see Catalina and localhost these two, finally in the Locaohost log file found such a sentence:

 Geneva  . 1:maxclass   Org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundException: Org.springframework.web.context.ContextLoaderListener

Contextloaderlistener This class does not load successfully, said is the problem of configuration, and then continue to Baidu, there are several cases

1,listener configuration to put in front of the servlet, I look at my configuration file, it is true,

2, is the Tomcat cache problem, the project Tomcat removed after the redeployment up, I tried, no

3, said that there is no spring package, I think a good, a bad, if it is spring package, it should have been bad, so ruled out, (the result there is a problem)

4, reinstall Tomcat, this method I did not try, do not know how the effect

Suddenly, in the forum to see someone say look at your Tomcat server project under the Web-info\lib there is no this package, and then I looked, and sure enough, there is no spring package. OK, here's the problem. That's because it's not a package.

This reminds me that no matter whether the project is loaded with a dependency package, if the deployment to the server is not dependent on the package, it is useless, it will certainly be problematic.

Finally, the contents of my web-inf\lib are as follows

Then turn on debug, success.

The above five methods play a reference role, mainly is the fifth kind, uses the fact to speak. My project is idea Sub-module, the specific how to add to Lib can Baidu.

The process of solving the problem is painful, and after the solution it feels like this.

Severity: Error Configuring Application Listener of Class Org.springframework.web.context.ContextLoaderList

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.