How to configure the Tomcat server in eclipse

Source: Internet
Author: User
Tags tomcat server

Before using MyEclipse to develop the Web application, you can configure the server in the MyEclipse, after configuration, directly run the server, it is convenient.

Recently switched to the Eclipse development environment and found that using Tomcat is not the same way, so make a note here.

There are two main modes of running a web app with Tomcat in Eclipse:

1. Default mode:

Right-click on the standard Web system and select run on Server

Choose the tomcat server, how not, you can click Add New server.

Just click on the [Finish] button to run your Web app properly.

2. Improved scenario: Deploy the app to the WebApp directory in Tomcat.

1. First in the above configured server in all the application of the deletion, directly click on the application to delete the right button.

2. Select the server and select the [Clean] button in the right-click menu.

3. Double-click Server

4. Modify the configuration:

A. Change the server Locations to use Tomcat installation.

B. Change the deploy path to the WebApps directory.

After modification, as shown in:

5. Save the changes.

Re-add the app to the server, restart Tomcat, and discover that the project has been deployed to WebApps.

Ps:
Why use an improvement scenario, the default way is to deploy a set of applications within the workspace. Adding the need to modify the Tomcat configuration, check the output log and other operations, inconvenient.



Sdjnzqr
Source: http://www.cnblogs.com/sdjnzqr/
Copyright: This article is owned by the author and the blog Park
Reprint: Welcome reprint, but without the consent of the author, this paragraph must be retained; The original link must be given in the article; otherwise, legal liability
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.