Resolves an Eclipse Java build path in which the Web APP libraries cannot automatically find the Web-inf lib directory

Source: Internet
Author: User

When I submitted the code yesterday, my eclipse was exhausted and found that the jar package inside the Web App libraries was not automatically added to the Web app libraries, causing all the previously configured items to be manually reconfigured and searched online. A workaround was found:

Reference link http://blog.csdn.net/zhengzhb/article/details/6956130

Navigate to the project root. Settings inside the org.eclipse.wst.common.component, the following paste into the inside to save, you can detect the web-inf/lib inside all the jar package.

<?xml version= "1.0"  encoding= "UTF-8"? ><project-modules  id= "Modulecoreid"  project-version= "1.5.0" >    <wb-module deploy-name = "Test" >        <wb-resource deploy-path= "/"   Source-path= "/webcontent/"/>        <wb-resource  Deploy-path= "/webcontent/web-inf/classes"  source-path= "WEBCONTENT/WEB-INF/SRC"/>         <property name= "Context-root"  value= "/WebContent"/>         <property name= "Java-output-path"  value= "/WebContent/classes" />    </wb-module></project-modules> 

Look carefully, through the modification of this document, in the project properties inside the deployment assembly inside more than two projects, the project is mainly based on these two items (visual inspection is just the <property name= "Context-root "Value="/webcontent "/>" to locate the project's Web App libraries.


Resolves an Eclipse Java build path in which the Web APP libraries cannot automatically find the Web-inf lib directory

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.