Workaround to modify the name of the project under Eclipse to cause inconsistent publication names within Tomcat

Source: Internet
Author: User

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:

  1. 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")
  2. 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

Related Article

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.