Error message: org.apache.jasper.JasperException:java.lang.NullPointerException
Cause: Project-dependent jar packages and Tomcat containers have duplicate dependency jar packages, typically Servlet-api.jar, Jsp-api.jar
How to resolve:
If it is a non-MAVEN project, find Servlet-api.jar, Jsp-api.jar delete in/web-inf/lib
If it's a MAVEN project, comment out the servlet dependencies in Pom.xml
As follows:
<!-- add servlet3.0 core package --> <!-- < Dependency> <groupId>javax.servlet</groupId> <artifactid>javax.servlet-api</artifact Id> <version>3.0.1</version> Note here to limit the scope of SERVLET-API, otherwise it will conflict with the Tomcat plugin <scope>pro vided</scope> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>javax.servlet.jsp-api</artifactId> <version>2.3.2-b01</version> </d ependency> jstl <dependency> <groupId>javax.servlet</groupId> <artifactid>j stl</artifactid> <version>1.2</version> </dependency> -->
Access project times wrong org.apache.jasper.JasperException:java.lang.NullPointerException