Tomcat normal boot, access all pages are reported 404 abnormal, 404 exception Summary

Source: Internet
Author: User
Tags tomcat server

Today encountered a problem: Tomcat normal boot, access to all pages are reported 404 abnormal

404 exceptions are common, most of which are path errors, web.xml file mapping path writes, server settings, servlet jar packages that are not in or are not published with the project, and so on.

If it is a path error, careful examination can solve the problem.

The server is not set up to also report this error, which is generally a novice at the beginning of the problem encountered, is to the eclipse in the Tomcat server location set to use Tomcat installation, in the Eclipse interface double-click Tomcat Server See diagram settings:


If this is a servlet jar package issue, introduce the jar package through build path, add the external jar file on the Libraries tab, and tick the application in the Order and Export tab, and finally in deployment and Add it to the assessment option, indicating that Tomcat copies it to the project's Web-inf\lib directory when it is published.

And today I encountered the problem is not any one, think I also did not move anything, just modify the code, want to use another way to achieve upload function, behold the introduction of a jar package and deleted after 404 of the problem, very helpless.

The problem is to be solved, toss half a day, finally found the problem is: Delete the jar bag accidentally release included WebApp to remove, this is no wonder the newspaper find the path, see figure

Okay, problem solved.


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.