How to solve browser access error when Tomcat is started in eclipse

Source: Internet
Author: User

After the Tomcat server is configured in eclipse and the start server is successful, enter http: // localhost: 8080/in the browser. The Error 404 is displayed and the normal Tomcat page cannot be seen.

The main cause is the Tomcat server configuration in eclipse,

Double-click the added server "Tomcat v7.0 server @ localhost" on the server"

Get server locations in overview (Overview), and select the following 2nd options:

. Use workspace metadata (does not modify tomcat installation );

.Use tomcat installation (take control of Tomcat installation );

.Use custom location (does not modify tomcat installation);

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

1. server path (tomcat or eclipse root directory,"Use M Location" option)

2. Deploy path (root directory of the project file. Tomcat is generally webapps, and wtpwebapps is generally in workspace)

Note: to modify this option, first remove the project deployed under "Tomcat v7.0 server @ localhost" and start and stop modification!

I changed to: D: \ Program Files \ Apache Software Foundation \ Tomcat 7.0 \ webapps

Last save, restart the server "Tomcat v7.0 server @ localhost"

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.