Deployment of SSM project in MAVEN solution for Spring Contextloaderlistener

Source: Internet
Author: User

1. Project use technology: The MAVEN project uses the Spring mvc+spring +mybatis+tomcat to build a project.

2. Error message:

Error Configuring application Listener of Class Org.springframework.web.context.ContextLoaderListener

3. Solution Ideas:

(1) From the error message we can see that the project was launched when the Contextloaderlistener was not found.

(2) Then we must first think that we have the spring package has been written into the Pom why did not find it.

(3) This is what we should think of is not a corresponding package in the deployment project. Then go to Tomcat's deployment directory. The discovery really does not have a corresponding package.

(4) Then we right-click on the project and select Properties

(5) then select Deployment Assembly

(6) Click add--> to select Java Build Path entries-->maven dependencied. Click Finish when you have finished selecting. The new deployment project is ready.

Deployment of SSM project in MAVEN solution for Spring Contextloaderlistener

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: 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.