org.apache.jasper . jasperexception: unable to compile class for jsp: error resolution

1、 The main reason for this problem is that the version of servlet API does not match the version of Tomcat.

2、 Solutions.
I’m changing the version of Tomcat.
Put the plug-in code below into the pom.xml In the middle.

<!--<build>-->
    <!--<plugins>-->
      <!--<plugin>-->
        <!--<groupId>org.apache.tomcat.maven</groupId>-->
        <!--<artifactId>tomcat7-maven-plugin</artifactId>-->
        <!--<version>2.2</version>-->
        <!--<configuration>-->
          <!--<port>8888</port>-->
        <!--</configuration>-->
      <!--</plugin>-->
    <!--</plugins>-->
  <!--</build>-->

Start with tomcat7: run.

Start with tomcat7.
The problem can be solved.

Read More: