These days to do a project, and then for a little reason need to modify the name of the Javaweb project, click on the project name and right Refactor->rename ... Enter the name of the project you want to modify, save it, deploy to Tomcat, and suddenly find that the project name under Eclipse causes the name of the tomcat to be inconsistent, depressed, and began to find a solution online, I was watching http://blog.chinaunix.net/ uid-25820084-id-3531608.html This site kimutaku001 Chinaunix blog A friend's blog, solve the problem, I said he wrote out, one is afraid of himself later forget how to solve, But let the friends who meet this problem solve the problem, there is no place welcome to discuss together
Now say the solution:
- Open the file "your project catalog \.settings\org.eclipse.wst.common.component" To see the content, and replace all the strings in your original project name with the new project names (I only modified <property name= " Context-root "value="/Modified project name "/> This piece")
- Restart Eclipse, redeploy the project, and discover that the problem is resolved
Workaround to modify the name of the project under Eclipse to cause inconsistent publication names within Tomcat