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.