How to solve the 404 error when accessing the Tomcat homepage in eclipse or springtoolsuite

Source: Internet
Author: User

Today, I encountered a problem. In eclipse or springtoolsuite, although Tomcat is started normally, the error 8080 is reported when I access http: // localhost: 404, and switch to the startup of Tomcat. if the bat service starts, there is no problem.

Solution: First, find the servers label (don't tell me you can't find it, so I have nothing to say) and find the Tomcat you have configured, check whether you have added some modules (that is, projects) to Tomcat. If you have added them, right-click the server item you want to configure, my name is "Tomcat v6.0 server at localhost", select add and remove .... in the pop-up dialog box, delete all the modules on the server (because the configuration can be modified only when the module is not added yet, as long as the module is added, the Configuration Modification area is gray. Disabled. See it)

Then, let me know if you have deleted all the modules in it? Okay, clear it. Next, double-click "Tomcat v6.0 server at localhost". In this case, a UI about tomcat configuration will be displayed in your editing window, it is easy to see this interface.

Next, find "server locations" in this interface? No.) in the following three single options, select the second item "use tomcat installation", and then click the next four lines to see if "deploy path" is correct? The default value after it is "wtpwebapps". Change it to "webapps", that is, the name of the folder where the project is released in Tomcat. So far, the configuration is complete, and the project is added to the "Tomcat v6.0 server at localhost" server again to run.
At this time, you can see the familiar http: // localhost: 8080.

 

 

 

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.