Tomcat error: HTTP status 500 (wrapper cannot find servlet class) solution
Tomcat reports an error: HTTP status 500 - wrapper cannot find servlet class
HTTP Status 500 - Wrapper cannot find servlet class com. servlet. servlet. RegServlet or a class it depends on
type Exception report
message Wrapper cannot find servlet class com. servlet. servlet. RegServlet or a class it depends on
description The server encountered an internal error that prevented it from fulfilling this request.
exception
root cause
java. lang.ClassNotFoundException: com. servlet. servlet. RegServlet
Solution:
After confirming that the servlet class is written correctly and the configuration file is correct, the following problems still occur:
Preparation: check whether it is generated normally in the \ WEB-INF \ classes directory Class file. If it is not generated, continue to the next step
Step 1: clear project - > clean project
Step 2: empty the Tomcat cache - > the directory file of the corresponding project under the corresponding directory \ work \ Catalina \ localhost
Step 3: republish the project
Thank you for reading, hope to help you, thank you for your support to this site!