Deploy a Web project in Eclipse to run on the Tomcat server.

Source: Internet
Author: User

Deploy a Web project in Eclipse to run on the Tomcat server.

When using Eclipse to develop a Web project, you can run the Web project through the Tomcat server. In this case, the Web project is deployed in [WorkSpace] \. metadata \. plugins \ org. eclipse. wst. server. in core \ tmp0 \ wtpwebapps. However, after Eclipse is disabled, the Web project cannot run, which is inconvenient. If you can deploy the Web Project to the Tomcat server and run the Web Project in Eclipse without running Eclipse, It is very convenient.

1. Stop running the Tomcat server and Remove all projects under the Tomcat server;

2. Double-click the Tomcat Server to go to the settings page. In Server Locations, select Use Tomcat Installation (takes control of Tomcat installation), enter webapps in Deploy path, and save and exit;

3. add a Web project to the Tomcat server, start it once, close it, and then exit Eclipse. start the Apache Tomcat 7 service in msc. It can be seen that the Web project in Eclipse is already running.

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.