An error occurred during the execution of the service method of the requested Servlet, and the program cannot continue to run.
Possible reasons
Servlet does not inherit HttpServlet or implement the Servlet interface
The <servlet-class> in the web.xml file is written incorrectly and does not match the real package name and class name
The code in the service method throws an exception when running
Analysis of your situation
From the screenshot information you gave (the one where Tomcat starts to load), we can basically conclude that the red line in the content is an error in the specified class in the <servlet-class> tag of your web.xml file. Please check and confirm.
class not found. Check if your container cannot find this class. No, check if the output classpath of src is not set properly
500 error reason
Possible reasons
Analysis of your situation
From the screenshot information you gave (the one where Tomcat starts to load), we can basically conclude that the red line in the content is an error in the specified class in the <servlet-class> tag of your web.xml file. Please check and confirm.
sevlet.test.Aservlet sevlet Look at the package name of Aservlet
Errors of 500 usually indicate a problem with the code. You have to start looking at the code