Eclipse Tomcat Output Path configuration modification (Java Web Publishing Path modification/webapps/wtpwebapps)

Source: Internet
Author: User

Eclipse was allowed to self-configure Tomcat to debug the Java Web, but it was released by default not in the WebApps directory of Tomcat, which I struggled with for a long time because I started using myeclipse (but in order to maintain the unity of team development tools, Now it's all changed to eclipse as a development tool. When developing the Java Web, he will automatically deploy to the WebApps directory, where is it strange to go? Asked the next colleague, also checked the information, the following article helped me find the solution:

Configuring server for Tomcat under Eclipse (typically Tomcat 6.X), double-clicking Tomcat v6.0 Server in the server panel, there are three options for the server locations configuration:

1. Use workspace metadata (does not modify Tomcat installation);

2. Use of the Tomcat installation (take control of Tomcat installation);

3. Use Custom location (does not modify Tomcat installation);


The first option represents the metadata path using the current workspace, which typically saves the output file to the workspace directory, the second indicates that the output file is saved to the Tomcat installation directory, and the third one has not been used.

However, if you need to modify this configuration, you need to remove all the projects under the Tomcat service ( removeAll), Right-click the Clean command, and finally modify the configuration;

In addition, there are two parameter input boxes below this option:

1. Server path (that is, Tomcat or eclipse root)

2. Deploy path (the root directory of the project file, Tomcat generally is webapps,workspace under General Wtpwebapps)

PS: In general, the workspace sub-path is (workspace). Metadata.pluginsorg.eclipse.wst.server.core mp0{deploy Path} (where Deploy Path can be configured by default workspace to Wtpwebapps)

About Eclipse configuration Tomcat has one more question I've encountered: If you delete the server (assuming it was Tomcat 6) and then want to configure it as the original (the corresponding assumption is Tomcat 6), it seems that this option cannot be selected, but other types (such as Tomcat 5) are selected. , at this point the solution is to create a new WORKSAPCE, delete the original workspace under the. Metadata folder.

For example, my window 7 system path is:

C:\Users\Administrator\workspace\.metadata.pluginsorg.eclipse.wst.server.core\mp0wtpweb\apps

Eclipse Tomcat Output Path configuration modification (Java Web Publishing Path modification/webapps/wtpwebapps)

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.