After you have configured Tomcat in Eclipse, publish a Web project to Tomcat, and when you use http://localhost:8080 to access the Tomcat home page, there is a 404 error, but you can access the Web pages normally. However, the Tomcat home page can be accessed normally when Tomcat is launched separately in the Tomcat file:
For this issue, there is a problem with the default settings in Eclipse, the solution is as follows:
1. Locate the Server Action window, double-click the following Tomcat service, and the interface appears:
2. In the open settings, select the option for server locations as the second "Use Tomcat installation (takes control of ...)" Can.
Note: When the red box is gray and not selectable, please do the following
Re-create a tomcat server to
404 occurs when you access the Tomcat home page after you start Tomcat in eclipse