[Never used myeclipse]
The younger brother wrote such a detailed blog for the first time. If it is helpful to you, please leave a message. Thank you.
1. After myeclipse is copied, modify the name and the project cannot be accessed.
This is because you only changed the project name
The solution is as follows:
Method 1. right-click your project, select "properties", enter "Web" in "Type Filter text", and enter the name of your new project as prompted, remember not to remove. Restart myeclipse.
Method 2. find the location of your project in the workspace of myeclipse. If you cannot find it, right-click your project and choose "myeclipse"-> "open in Explorer ", the location of your project is displayed. Open. in the mymetadata file, modify the value of the context-root attribute of the "Project-module" label. This method can only modify the project name deployed on the server and the access address, the project name displayed in myeclipse remains the same.
2. After copying or modifying a project in eclipse, deploy the project to Servlet and find that it is still the original project name.
Solution:
1. First find the project location
Find the position of your project in eclipse. This is different from myeclipse. Right-click the project and select "properties". Find the position of your project, for example:
2. open ". in the setting folder, find Org. eclipse. WST. common. component "modifies the value of" WB-module deploy-name "to your project name. If the value corresponds to your bottom property name =" context-root, this is usually changed when the name is changed. Restart eclipse.
3. If you deploy the package to the server, you can directly modify the name of the war package:
For example: Unicom. War (original project name) access address: 127.0.0.1/Unicom/index. jsp
Change the war package name to unicom01.war access address: 127.0.0.1/unicom01/index. jsp
4.
Myeclipse + Tomcat web project Renamed
Posted on Java life reading (1409) Comments (2) EDIT favorites category: Web Development
The project name is old, and is old after it is published to Tomcat webapps,
Right-click your project and choose refactor> rename. The project name is changed to new, but the release name is still the original name. If you want to name the released directory new,
You can modify it as follows:
Method 1:
Open the directory where the project is located, find a. mymetadata file, and open it with a WordPad. The content is roughly as follows:
<? 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" is the directory name after the release, changed to context-root = "/New", and the directory name re-released with eclipse is new. If you use the war package method for publishing, change archive = "old. War"> to archive = "New. War">. |