At org. Apache. jsp. index_jsp. _ jspinit (index_jsp.java: 66) When initializing the JSP page, a null pointer exception is reported.

Source: Internet
Author: User

 

When initializing the default JSP page when running tomcat, the following message is displayed:Null Pointer Error

[Java]
View plaincopyprint?
  1. 1. At org. Apache. jsp. index_jsp. _ jspinit (index_jsp.java: 66)

1. At org. Apache. jsp. index_jsp. _ jspinit (index_jsp.java: 66) <br/>
I think it may be an error during compilation .. Finally, a post is searched online. The following is a link.

A null pointer exception is reported when the JSP page is initialized.

 

He said

I think an error occurred while initializing the JSP page! Later I looked for it online, it turned out that I had added jsp-api.jar and servlet-api.jar packages under the web-INF/lib folder of the project. Tomcat on the new computer seems to be in conflict with the two packages! Delete these two packages and add the two similar packages under tomcat!

My solution is:

Delete the JSP-API and server-API jar packages in the project, customize a user library, and then name the custom package name. You must check the system library (added to the boot class path)

Then import your two conflicting jar (jsp-api.jar servelet-api.jar)

 

Modify the. classpath folder under the project.

Modify <classpathentry kind = "lib" Path = "org. Eclipse. jdt. user_library/JSP-API"/>

<Classpathentry kind = "lcon" Path = "org. Eclipse. jdt. user_library/JSP-API "/

 

Finally, refresh the project and start Tomcat OK!

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.