Jsp NULL pointer

Source: Internet
Author: User

Java. lang. nullPointerException at org. apache. jsp. index_jsp. _ jspInit (index_jsp.java: 22) may be caused by many reasons. The most important reason is that the jar package in your project conflicts with the jar package in release, many solutions are to delete the jsp-api.jar and servlet-api.jar in the project two jar packages, this solution is correct, but after deleting these two jar packages, may still have a problem, in this case, you need to carefully check the information in your project. classpath file, pay special attention to kind = "lib" is not to reference the jsp-api.jar and servlet-api.jar these two jar packages, may reference the jar package in tomcat, if you find this situation, the two lines must be deleted. Restart tomcat. It should be okay! The deletion and modification of jar files must be reflected in the. classpath file. Otherwise, the above problems may occur.

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.