1 problem Leads
1 copy a project directly in Eclipse, modify the name, and then deploy the project name after deployment with the original project name
2 When you copy a project directly in the Eclipse workspace, the same problem occurs when the name is modified.
2 Solving the above problems
After copying the project, go to the project root and open the. Setting folder and find "Org.eclipse.wst.common.component"
Open the "org.eclipse.wst.common.component" file as follows:
<?XML version= "1.0" encoding= "UTF-8"?><Project-modulesID= "Modulecoreid"project-version= "1.5.0"> <Wb-moduleDeploy-name= "WEBTest25"> <Wb-resourceDeploy-path="/"Source-path= "/webcontent"Tag= "Defaultrootsource"/> <Wb-resourceDeploy-path= "/web-inf/classes"Source-path= "/src"/> < Propertyname= "Java-output-path"value= "/WEBTest25/build/classes"/> < Propertyname= "Context-root"value= "WEBTest25"/> </Wb-module></Project-modules>
Modify it to: solve the above problem
<?XML version= "1.0" encoding= "UTF-8"?><Project-modulesID= "Modulecoreid"project-version= "1.5.0"> <Wb-moduleDeploy-name= "WEBTest26"> <Wb-resourceDeploy-path="/"Source-path= "/webcontent"Tag= "Defaultrootsource"/> <Wb-resourceDeploy-path= "/web-inf/classes"Source-path= "/src"/> < Propertyname= "Java-output-path"value= "/WEBTest26/build/classes"/> < Propertyname= "Context-root"value= "WEBTest26"/> </Wb-module></Project-modules>
1-After the project is copied or modified in Eclipse or workspace, the project is discovered or the original project name after it is deployed