java.lang.NoSuchFieldError: deferredExpression

使用JSTL的c:forEach标签JSP报如下错误:

java.lang.NoSuchFieldError: deferredExpression
    at org.apache.taglibs.standard.tag.common.core.ForEachSupport.release(ForEachSupport.java:178)
    at org.apache.jasper.runtime.TagHandlerPool.release(TagHandlerPool.java:166)
    at org.apache.jsp.index_jsp._jspDestroy(index_jsp.java:32)
    at org.apache.jasper.runtime.HttpJspBase.destroy(HttpJspBase.java:61)
    at org.apache.jasper.servlet.JspServletWrapper.destroy(JspServletWrapper.java:439)
    at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)

原因是项目中有多个jstl.jar,删除一个即可

这里写图片描述

如果还报错,删除work文件,clean重新编译

作者:itmyhome

©️2020 CSDN 皮肤主题: 书香水墨 设计师:CSDN官方博客 返回首页