Deploy a Web project to a Tomcat server in eclipse

Source: Internet
Author: User

1. In eclipse, select Window--->preferences--->server--->runtime environments, select the Add button

  

2. In the popup dialog box, select the version of the TOMCAT server and click Next

  

3, in the Pop-up dialog box, select the Tomcat local path, the JRE version, etc., click Finish, and finally click OK

  

4, create Servers, if cannot find Servers, then select Window--->show View--->others, and then enter Servers in the pop-up dialog box, click OK to see

5, in the Pop-up dialog box, do not change what, direct, next, and then Finish can

  

6, double-click the built services, open the following interface:

  Note: If you have a project in your server, it must be clear that the project can be opened for modification

  

7, in the Open interface to make the following modifications, and then save

8, the server has been deployed to complete, then the next is to deploy the project to the server, start the server can

Right-click the project name, select Run as--->run on Server, then tap Finish to run the project

  

Note: The 7th step must be operational, and then the server can start normally, but access to the project will be reported 404 error. This is because eclipse redirects the Tomcat Project publishing directory (WebApp in the Tomcat directory), so you will find that your project file cannot be found in the WebApp directory under the Tomcat installation directory

Deploy a Web project to a Tomcat server in eclipse

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.