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.
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:
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 renaming Posted on 2009-05-11 17:01 java Life Reading (1409) Comments (2) Edit Collection Category: Web development The project name is originally old, published to Tomcat WebApps, Right-click your project and select refactor----> Rename, the project name to new, but the publication name is the original name. If you want to have the published directory named New, You can modify the following methods as follows: The first method: Open the directory where the project is located, find a. mymetadata file, open it in WordPad, with the following general information: <?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" >. http://blog.csdn.net/xswd169/article/details/8249192 |
MyEclipse and Eclipse after you modify or copy the project name-Update the deployment name