Access project times wrong org.apache.jasper.JasperException:java.lang.NullPointerException

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.