First, add Tomcat. Find Window-preferences-server-runtime environments-add-apache-in the menu bar select Tomcat Version-find the path to the Tomcat file-Modify the JRE path to add success to jre-
Second, locate the Server view (Window-show view-server) and double-clickTomcat v7.0 Server at localhost, the window will come up with a UI interface that configures Tomcat, where the server Locations (the second row on the left) is found, and in the following three single options, select the second item "use Tomcat installation "; If server Locations is grayed out, it is because you have joined other projects under Tomcat, and you can choose Server Locations by default without joining the project . then, down four lines, see "Deploy Path"? The value behind it defaults to "Wtpwebapps", which is changed to "WebApps", which is the name of the folder where the project was published in Tomcat, which is the configuration complete Finally, simply add the project to Tomcat and run http://localhost:8080/in the browserwhen Tomcat starts, because the project is delivered, the release time expires, and the time that Tomcat waits for publishing needs to change in this configuration interface, find the "timeouts" option, and change the time behind "Start" to OK.
404 error resolution for accessing Tomcat home page in eclipse