Fix Eclipse "Copy project renamed after republishing, project name is still original project name in Address bar" issue

Source: Internet
Author: User
Tags tomcat server

Task Description: Copy Project Spring_user and rename to Spring_user_test

First, by pressing F2 and the following way can modify the name of the target item in workspace

Click the Project Right button to select Properties, enter the keyword Web, enter the target name in context root: spring_user_test

Second, the key step--through the above method of modification, run the project, you will find the address bar is still the old project name, you need to change by the following settings

1. Find org.eclipse.wst.common.component in the workspace of the project

2. Open with Notepad or Notepad, and change the value of the following three items to the target name: spring_user_test

3. If the destination is not reached after the previous step is completed, open the project's workspace, tomcat in the servers directory. Config directory, locate Server.xml (a), open with Notepad, find the code shown in B, and modify the Docbase,path project name to target: Spring_user_test. --At this point, the revision is complete, but please be patient and read the next "special instructions", because if you run the project directly at this time ten will have "eggs."

A figure

b Figure

"Egg":

When you republish the project, you will notice that the following error occurred when you were unable to publish the item:

Could not load the Tomcat server configuration At/servers/tomcat v7.0 Server at Localhost-config. The configuration may be corrupt or incomplete.

Special Note:

For the "egg" you encounter, the solution is simple, that is, delete the current servers

Refresh the current project and publish it.

Fix Eclipse "Copy project renamed after republishing, project name is still original project name in Address bar" issue

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.