Resolves a 404 problem when you start Eclipse's Tomcat access _java

Source: Internet
Author: User
Tags tomcat server

There was a time when the project was not deployed to Tomcat, and there were 404 problems with deployment today.

First, the environment

TOMCAT7 jdk1.7 Eclipse-jee-luna-r-win32

Second, the problem description

1. When you finish creating a Web project, create a Tomcat server in Eclilpse, add a Web project to the server, start the server in Eclipse, and the startup is successful. In the browser input: http://localhost:8080, the page appears 404, as shown in the picture


2. Start Tomcat in Eclipse (startup is successful) even if no items are added under Tomcat. Enter in the browser: http://localhost:8080 is also the 404 error that appears on the image above

3. Turn off Eclipse Tomcat, start the locally installed Tomcat, and enter in the browser: http://localhost:8080, which will normally access the Tomcat page.

Third, the solution

1. Delete the project that is deployed under Tomcat

2, reconfigure Tomcat. Double-click the created server to see the following interface


3. Change the selection of the first marked Red section to: Use Tomcat installation (takes control of Tomcat installation)

If the Tomcat has items under it, this profile for Tomcat cannot be changed, just remove the items that are deployed under Tomcat.

4, the second red part of the deploy path to the directory of Tomcat publishing items: WebApps

5, save changes, restart Tomcat, again in the browser input: http://localhost:8080 You will see the familiar Tomcat page.

The above is the deployment of Tomcat 404 problem Solving method, I hope to help.

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.