After Tomcat 6 is released, the error org. Apache. Jasper. jasperexception: Java. Lang. nullpointerexception is returned when you access JSP.

Source: Internet
Author: User

 

Org. Apache. Jasper. jasperexception: Java. Lang. nullpointerexception
Org. Apache. Jasper. servlet. jspservletwrapper. handlejspexception (jspservletwrapper. Java: 522)
Org. Apache. Jasper. servlet. jspservletwrapper. Service (jspservletwrapper. Java: 356)
Org. Apache. Jasper. servlet. jspservlet. servicejspfile (jspservlet. Java: 337)
Org. Apache. Jasper. servlet. jspservlet. Service (jspservlet. Java: 266)
Javax. servlet. http. httpservlet. Service (httpservlet. Java: 803)
Org. Apache. struts2.dispatcher. filterdispatcher. dofilter (filterdispatcher. Java: 416)
Org. Apache. struts2.dispatcher. actioncontextcleanup. dofilter (actioncontextcleanup. Java: 99)

Apache Software Foundation/tomcat6.0/webapps/your project/WEB-INF/lib below to see if there is a servlet-api.jar, jsp-api.jar and so on under the Apache Software Foundation/tomcat6.0/lib jar package already exists, if yes, delete it. After restart, the problem is solved.

Org. Apache. Jasper. jasperexception: Java. Lang. nullpointerexception
Org. Apache. Jasper. servlet. jspservletwrapper. handlejspexception (jspservletwrapper. Java: 522)
Org. Apache. Jasper. servlet. jspservletwrapper. Service (jspservletwrapper. Java: 356)
Org. Apache. Jasper. servlet. jspservlet. servicejspfile (jspservlet. Java: 337)
Org. Apache. Jasper. servlet. jspservlet. Service (jspservlet. Java: 266)
Javax. servlet. http. httpservlet. Service (httpservlet. Java: 803)
Org. Apache. struts2.dispatcher. filterdispatcher. dofilter (filterdispatcher. Java: 416)
Org. Apache. struts2.dispatcher. actioncontextcleanup. dofilter (actioncontextcleanup. Java: 99)

Apache Software Foundation/tomcat6.0/webapps/your project/WEB-INF/lib below to see if there is a servlet-api.jar, jsp-api.jar and so on under the Apache Software Foundation/tomcat6.0/lib jar package already exists, if yes, delete it. After restart, the problem is solved.

Related Article

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.