Summary of errors encountered by IDEA using Tomcat

Tomcat startup error java.lang.ClassNotFoundException: org.apache.jsp.index_jsp

1. Check whether the jsp file or index.jsp file
I wrote is wrong ; I just wrote the wrong index.jsp file, which caused the problem to be unable to be compiled into the corresponding servlet class;
2. The jar package problem is mentioned on the Internet, refer to: link

  1. If you are using maven, then you can see if there are Jsp, Servlet, Jstl packages, add them, and add them again if you have them.
  2. If you are using the lib directory, check to see if there are two packages, jsp and servlet, and delete them.
  3. Just restart tomcat

Prompt that the filter is abnormal

1. The first possibility is that the tomcat version does not match the web.xml version used.
2. The second is to configure the web project incorrectly, you can refer to: javaEE-create a web project

other

Guess you like

Origin blog.csdn.net/qq_44861675/article/details/115313854