When Tomcat publishes the project, it enters the correct address in the browser and encounters the following issues:
HTTP Status 500-
Javax.servlet.ServletException:Wrapper cannot find servlet class XXX or a class it depends on
....
....
Java.lang.ClassNotFoundException:xxx
....
...
Problem Analysis:
is the <servle-mapping> and <servlet-class> content in the Web. xml file misconfigured?
1. Are the two name consistent 2. The configured class does not have a 3.servlet class that is not compiled so that the servlet class cannot be found;
method: View the class file of the Servlet class under the project's class directory to see if the compilation exists.
There is usually a class file that does not exist for compilation.
Solution:
Eclipse opens project->bulid automatically, and then deploys the release, and if there are no other errors, it will work properly after compilation.
Tomcat Error: Wrapper cannot find servlet class ...