Today you use Eclipse for Project debugging development, sometimes you need to modify the name of the project, but you can still access it using the old project name when you deploy to Tomcat in Eclipse.
The published project will show the wrong path, modify the process,
Locate the project directory, locate the Org.eclipse.wst.common.component file in the. Settings directory, modify the file contents
<?xml version= "1.0" encoding= "UTF-8"?>
<project-modules id= "Modulecoreid" project-version= "1.5.0" >
<wb-module deploy-name= "dpmjbyc" >
<wb-resource deploy-path= "/" source-path= "/" tag= "Defaultrootsource"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/web-inf/src"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/avenswebserver_src"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/avensapi_src"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/avensengine_src"/>
<property name= "Java-output-path" value= "/dpmjbyc/web-inf/classes"/>
<property name= "Me-merge-utility-modules" value= "true"/>
<property name= "Context-root" value= "/"/>
</wb-module>
</project-modules>
The middle of the
<wb-module deploy-name= "dpmjbyc" >
<property name= "Java-output-path" value= "/dpmjbyc/web-inf/classes"/>
The DPMJBYC in the two lines are modified to dpmwwxf and then the project is refreshed in Eclipse and re-released.
Project names are different when Web projects in Eclipse are published to Tomcat