The project release jar package in Maven is not synchronized

Source: Internet
Author: User

Yesterday's project was running today and suddenly found that it couldn't be run today.

Severity: Error Configuring 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:1858)
At Org.apache.catalina.loader.WebappClassLoader.loadClass (webappclassloader.java:1709)
At Org.apache.catalina.core.DefaultInstanceManager.loadClass (defaultinstancemanager.java:506)

Online find a lot, a lot of said missing jar package, but yesterday can run, today can't run

And then I found the right solution.

The sharing method is as follows, and many of these problems can be solved later.

It may be that your jar file is not synced to your project's lib directory (if you're building it with maven) you can try the following project right click on Properties Select Deployment Assembly then click on the Add button on the right Select Java Build Path entries and click the Next button and choose your maven Dependencies OK

Method positive solutions, perfect solution

The project release jar package in Maven is not synchronized

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.