Reference link http://blog.csdn.net/zhengzhb/article/details/6956130
I tried it. It is possible to carefully analyze the CVS to commit the code accidentally when the project root directory. Settings inside the org.eclipse.wst.common.component deleted, Now create a new one and then paste the following into it and save it, and you'll be able to detect all the jar packages inside the web-inf/lib.
<?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.
Web APP Libraries cannot automatically find the jar package in the Web-inf Lib directory