Obviously Tomcat has these packages underneath, but it also needs to add this dependency to Maven dependencies
<!--introduction of Servlet start - <Dependency> <groupId>Javax.servlet</groupId> <Artifactid>Javax.servlet-api</Artifactid> <version>3.1.0</version> </Dependency> <!--introduction of Servlet end - <!--introduction of JSP related start - <Dependency> <groupId>javax.servlet.jsp</groupId> <Artifactid>Jsp-api</Artifactid> <version>2.2</version> </Dependency> <!--introduction of JSP related end - <!--introduction of Javaee7 start - <Dependency> <groupId>Javax</groupId> <Artifactid>Javaee-api</Artifactid> <version>7.0</version> </Dependency> <!--Introduction Javaee7 End - <!--introduction of Jstl start - <Dependency> <groupId>Jstl</groupId> <Artifactid>Jstl</Artifactid> <version>1.2</version> </Dependency>
It's OK!!
Transfer from original author blog: 78472670?locationnum=5&fps=1
How maven-managed Jsp-web applications add Servlets, JSP-dependent dependencies (org.apache.jasper.JasperException:java.lang.ClassNotFoundException: ORG.APACHE.JSP.INDEX_JSP)