Tomcat error: Wrapper cannot find servlet class..., tomcatwrapper
When tomcat releases the project, enter the correct address in the browser and the following problem occurs:
HTTP Status 500-
Javax. servlet. ServletException: Wrapper cannot find servlet class xxx or a class it depends on
....
....
Java. lang. ClassNotFoundException: xxx
....
...
Problem Analysis:
Whether the content of <servle-mapping> and <servlet-class> in the web. xml file is configured incorrectly,
1. Whether the two names are consistent 2. Whether the configured class exists 3. Whether the servlet class has not been compiled, so that the servlet class cannot be found;
Method: Check the class file of the servlet class under the class directory of the project to check whether the compilation exists.
There is usually no compiled class file.
Solution:
If Build Automaticlly is not enabled, eclipse enables Project-> Bulid Automatically and re-deploys and releases. If there are no other errors, it can run normally after compilation.
You can also manually click Project -- Build Project to Build a Project upon each release and deployment!
Note: Build Automaticlly is used to automatically Build a project.