MyEclipse and Eclipse Modify or copy the project name after the deployment name is the original name

Source: Internet
Author: User

First, myeclipse the name after replication, access to the project

This is because you just changed the name of the project without changing the

Here's how to fix it:

Method 1. Right-click on your project, select "Properties", enter "web" in "Type filter text", and enter your new project name as indicated, remember not to remove the "/". Restart the next myeclipse on the can.

650) this.width=650; "src=" http://www.myexception.cn/img/2015/01/23/2111481190.jpg "width=" 802 "height=" 188 "/>

Method 2. Find the location of your project in the MyEclipse workspace, you can not find the right click on your project, select "MyEclipse", "Open in Explorer", see the location of your project, open the. mymetadata file, modify the " Project-module the value of the Context-root property of the label, this method can only modify the name of the project deployed to the server and access the address, and the project name shown in MyEclipse will not change.

Second, after eclipse has copied or modified the project, deploy the project to the servlet discovery or the original project name

Workaround:

1. Find the project location first

Also find the location of your project in eclipse, this is different from MyEclipse, right click on the project, select "Properties"; Find your project location as:

650) this.width=650; "src=" http://www.myexception.cn/img/2015/01/23/2111481191.jpg "/>

2. Open the ". Setting" folder and find "Org.eclipse.wst.common.component" to modify the value of "Wb-module Deploy-name" for your project name, if with your bottom property name= " Context-root "value is also your name, the general changed the name of the time this has been changed. You can restart eclipse.

3. If you deploy to a server, you can modify the name of the war package directly:

Example: Unicom.war (original project name) Access address: 127.0.0.1/unicom/index.jsp

Rename the war package to Unicom01.war Access address: 127.0.0.1/unicom01/index.jsp

4.

myeclipse+tomcat Web project renamed  

The project name was originally old, published to Tomcat WebApps,
Open the directory where the project is located, find a. mymetadata file, open it in WordPad, with the following content:


<?xml version= "1.0" encoding= "UTF-8"?>
<project-module
Type= "WEB"
Name= "Action"
Id= "myeclipse.1242011546906"
context-root= "/old"
j2ee-spec= "1.4"
Archive= "Old.war" >
<attributes>
<attribute name= "Webrootdir" value= "/webroot"/>
</attributes>
</project-module>

Context-root= "/old" after the published directory name, changed to context-root= "/new", re-published with Eclipse directory name is new. If you publish with a war package, change the archive= "Old.war" > To Archive= "New.war" >



This article is from the "11647004" blog, please be sure to keep this source http://11657004.blog.51cto.com/11647004/1907142

MyEclipse and Eclipse Modify or copy the project name after the deployment name is the original name

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.