Workaround for accessing the JSP report HTTP Status 500-java.lang.nullpointerexception

Source: Internet
Author: User

When developing the web with eclipse, because there is no servlet and JSP jar package, the development work cannot be done smoothly, and when the jar package is put into the WebApps Lib directory, The jar package for the servlet and JSP in the project conflicts with the JSP and servlet packages in Tomcat, resulting in access to any JSP page that will be reported as "HTTP Status 500-java.lang.nullpointerexception" The error

Workaround: In a MAVEN Web project (or Web project built through Eclipse), do not add a dependency to the servlet and JSP in the Pom file, or put the servlet and JSP jar packages in the WebApps lib directory.

The correct approach is to create a Lib folder at the root of the project, to temporarily store the jar package, and then add the jar package from the project root in the Lib folder in the project's Classpath, which is only temporary for development, When the project is published it is not published to the Lib directory under WebApps, and all does not cause a conflict.

This article from "Small Fish Blog" blog, declined reprint!

Workaround for accessing the JSP report HTTP Status 500-java.lang.nullpointerexception

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.