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.