About JSP page using JSTL exception Analysis _jsp programming

Source: Internet
Author: User
1. Use the following code in the JSP page to join JSTL support
Copy Code code as follows:

<%@ taglib prefix= "C" uri= "Http://java.sun.com/jsp/jstl/core"%>

2. If the JSP page reports the following exception

org.apache.jasper.JasperException:java.lang.ClassNotFoundException:org.apache.jsp.Customer.addCustomerInfo_jsp
Org.apache.jasper.servlet.JspServletWrapper.getServlet (jspservletwrapper.java:177)
Org.apache.jasper.servlet.JspServletWrapper.service (jspservletwrapper.java:369)
Org.apache.jasper.servlet.JspServlet.serviceJspFile (jspservlet.java:390)
Org.apache.jasper.servlet.JspServlet.service (jspservlet.java:334)
Javax.servlet.http.HttpServlet.service (httpservlet.java:722)
Org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal ( opensessioninviewfilter.java:198)
Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:76)
Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:96)
Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:76)

Root cause

java.lang.ClassNotFoundException:org.apache.jsp.Customer.addCustomerInfo_jsp
Java.net.urlclassloader$1.run (urlclassloader.java:200)
Java.security.AccessController.doPrivileged (Native method)
Java.net.URLClassLoader.findClass (urlclassloader.java:188)
Org.apache.jasper.servlet.JasperLoader.loadClass (jasperloader.java:132)
Org.apache.jasper.servlet.JasperLoader.loadClass (jasperloader.java:63)
Org.apache.jasper.servlet.JspServletWrapper.getServlet (jspservletwrapper.java:172)
Org.apache.jasper.servlet.JspServletWrapper.service (jspservletwrapper.java:369)
Org.apache.jasper.servlet.JspServlet.serviceJspFile (jspservlet.java:390)
Org.apache.jasper.servlet.JspServlet.service (jspservlet.java:334)
Javax.servlet.http.HttpServlet.service (httpservlet.java:722)
Org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal ( opensessioninviewfilter.java:198)
Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:76)
Org.springfr

Amework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:96)

Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:76)

So there's probably no jstl jar package in your Tomcat's Lib directory, which is why Tomcat cannot parse Jstl

Solution: Add the Jstl jar bundle to the Tomcat's Lib directory.

Jstljar package Download Address: Download Jstl
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.