Java modifies the value of Web-root folder __web

Source: Internet
Author: User

Today, when using MyEclipse to deploy a project, found that there is a problem with the configuration, in the Web configuration, Web-root folder This value is wrong, directly modified after the save found still this, does not work. The internet found that there are such problems, but there is no solution, and later in the help of colleagues to modify a configuration file, the problem is solved, record, to prevent the problem in the future do not know how to do.

Locate the. Setting folder under the project path, open the Org.eclipse.wst.common.component file inside, and modify the following configuration:

If there were 2 such configurations:

<wb-resource deploy-path= "/" source-path= "/target/m2e-wtp/web-resources"/> <wb-resource deploy-path=

"/" source-path= "/src/main/webapp" tag= "Defaultrootsource"/>

Delete the first one directly, or move the top down to the bottom.

If there is no bottom, then the top of the modification to the bottom can be, but remember not to upload up.

Because the project colleague was created in Eclipse and MyEclipse and Eclipse are different, this can cause this problem to occur.

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.