Colleague encountered a problem, start the project to run well, after a period of time to visit the page will report the following error message (only part),
This is probably because the SERVLET-API version of the jar package is duplicated, and the project itself uses SERVLET-API (referenced in Pom.xml),
Servlet-api.jar is also included in the Eclipse deployment Tomcat,tomcat, and the two jar package versions are inconsistent. Change to a consistent version of redeployment,
Java.lang.ClassNotFoundException:org.apache.jsp.WEB_002dINF.com.yourproject.test_jsp at java.net.urlclassloader$ 1.run (urlclassloader.java:202) at java.security.AccessController.doPrivileged (Native Method) at Java.net.URLClassLoader.findClass (urlclassloader.java:190) at Org.apache.jasper.servlet.JasperLoader.loadClass ( jasperloader.java:132)
How to view Servlet-api version, look at the picture:
Resolved: java.lang.ClassNotFoundException:org.apache.jsp.WEB_002dINF.com.yourproject.test_jsp