Eclipse cannot directly run maven-built Webapp__web

Source: Internet
Author: User

A recently developed project has been stored on a mobile hard drive, the result of the day before yesterday due to the search for multiple devices, the letter changed, Eclipse also can not find the project. After you have copied the item back to the local disk, reopen it. Run on Server directly, prompting ClassNotFoundException to find spring ApplicationContext. Enter the%eclipse_workspace%\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\myapp\ to view, Found no Lib directory under Web-inf. There is no problem checking the build path for project. Finally Google, found the StackOverflow last answer:

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


I solved it in a third way:

Right-click to open Project Properties--> find "Deployment Assembly"--> click "Add"-->java build Path entries--> "Maven dependecies", Save and run again On server starts running.


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.