异常: java.lang.NoSuchFieldError: deferredExpression

yixu0 2011-05-08

typeExceptionreport

message

descriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.

exception

javax.servlet.ServletException:java.lang.NoSuchFieldError:deferredExpression

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

oilsb.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:20)

rootcause

java.lang.NoSuchFieldError:deferredExpression

org.apache.taglibs.standard.tag.common.core.ForEachSupport.release(ForEachSupport.java:178)

org.apache.jasper.runtime.TagHandlerPool.release(TagHandlerPool.java:166)

org.apache.jsp.sitetotal_005fdisplay_jsp._jspDestroy(sitetotal_005fdisplay_jsp.java:44)

org.apache.jasper.runtime.HttpJspBase.destroy(HttpJspBase.java:61)

org.apache.jasper.servlet.JspServletWrapper.destroy(JspServletWrapper.java:425)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:139)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

oilsb.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:20)

问题原因:jstl标签版本冲突

解决方案以及相关说明:

<%@taglibprefix="c"uri="http://java.sun.com/jsp/jstl/core"%>使用的是jstl.jar

<%@taglibprefix="c"uri="http://java.sun.com/jstl/core_rt"%>使用的是jstl-1.1.2.jar或jstl-1.2.jar

工程中使用的标签必须统一,只用一个jar包。发布后检查Tomcat中jar包是否只有一个

相关推荐

lionelf / 0评论 2020-07-28