When initializing the default JSP page when running tomcat, the following message is displayed:Null Pointer Error
[Java]
View plaincopyprint?
- 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!