Tomcat configured in eclipse starts normally but accesses the 404 error

Source: Internet
Author: User
Tags tomcat server

Problem Description:
The tomcat configured in Eclipse, boot is normal, the console display starts successfully, and no error message is reported, but when the access is reported 404 error, and then directly in the Bin directory to start Startup.bat is normal. Then I was very puzzled, after the online search for information, said that the eclipse configuration is out of the question.

Solution:

1. If Tomcat is started in the server, it needs to be stopped first. And then remove the added item

2. After double-clicking on the Tomcat server configured in server, the following interface will appear.

3. Select the second option in the server locations configuration, use Tomcat installation, save again and restart the Tomcat service.

4. Note that there may be times when the server locations the following several options are read-only, can not be selected, this time you need to right-click on Tomcat under the server-"and then select Publish, republish it."

5, and then re-execute the above step 3, you can

6. Re-add the project to the Tomcat container, start running, and see the effect.

7. End of:

Tomcat configured in eclipse starts normally but accesses the 404 error

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.