Eclipse cannot directly run the webapp built by Maven

Source: Internet
Author: User

A recently developed project has been stored on a mobile hard disk. As a result, the drive letter has changed since multiple devices were found the day before yesterday, so eclipse cannot find the project. Copy the project back to the local disk and re-open it. Run on server directly and prompt classnotfoundexception. Spring applicationcontext cannot be found. Go to % eclipse_workspace % \. Metadata \. plugins \ org. Eclipse. WST. server. Core \ tmp1 \ wtpwebapps \ MyApp \ and check that there is no lib directory under the WEB-INF. Check that the build path of the Project is correct. Finally, Google found an answer on stackoverflow:

Http://stackoverflow.com/questions/6083501/maven-dependencies-not-visible-in-web-inf-lib

I solve the problem in the third way:

Right-click Project Properties and choose "deployment assembly"> "add"> JAVA build path entries> "Maven dependecies". Save the settings and run on server again.

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.