欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

解决JSTL foEach标签 刷新报错的方法

程序员文章站 2023-12-12 15:39:16
修改jsp,刷新一下jsp结果就报错,错误如下:复制代码 代码如下:严重: servlet.service() for servlet jsp threw exceptio...
修改jsp,刷新一下jsp结果就报错,错误如下:
复制代码 代码如下:

严重: servlet.service() for servlet jsp threw exception
 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.portal_jsp._jspdestroy(portal_jsp.java:35)
     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:717)
     at org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:290)
     at org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206)
     at org.apache.catalina.core.applicationdispatcher.invoke(applicationdispatcher.java:646)
     at org.apache.catalina.core.applicationdispatcher.processrequest(applicationdispatcher.java:436)
     at org.apache.catalina.core.applicationdispatcher.doforward(applicationdispatcher.java:374)
     at org.apache.catalina.core.applicationdispatcher.forward(applicationdispatcher.java:302)
     at org.apache.struts2.dispatcher.servletdispatcherresult.doexecute(servletdispatcherresult.java:140)
     at org.apache.struts2.dispatcher.strutsresultsupport.execute(strutsresultsupport.java:186)
     at com.opensymphony.xwork2.defaultactioninvocation.executeresult(defaultactioninvocation.java:355)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:259)
     at com.opensymphony.xwork2.interceptor.defaultworkflowinterceptor.dointercept(defaultworkflowinterceptor.java:141)
     at com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:86)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at com.opensymphony.xwork2.validator.validationinterceptor.dointercept(validationinterceptor.java:248)
     at org.apache.struts2.interceptor.validation.annotationvalidationinterceptor.dointercept(annotationvalidationinterceptor.java:49)
     at com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:86)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at com.opensymphony.xwork2.interceptor.conversionerrorinterceptor.intercept(conversionerrorinterceptor.java:124)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at com.opensymphony.xwork2.interceptor.parametersinterceptor.dointercept(parametersinterceptor.java:170)
     at com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:86)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at com.opensymphony.xwork2.interceptor.parametersinterceptor.dointercept(parametersinterceptor.java:170)
     at com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:86)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at com.opensymphony.xwork2.interceptor.staticparametersinterceptor.intercept(staticparametersinterceptor.java:104)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at org.apache.struts2.interceptor.checkboxinterceptor.intercept(checkboxinterceptor.java:84)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at org.apache.struts2.interceptor.fileuploadinterceptor.intercept(fileuploadinterceptor.java:208)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at com.opensymphony.xwork2.interceptor.modeldriveninterceptor.intercept(modeldriveninterceptor.java:88)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at com.opensymphony.xwork2.interceptor.scopedmodeldriveninterceptor.intercept(scopedmodeldriveninterceptor.java:127)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at org.apache.struts2.interceptor.profilingactivationinterceptor.intercept(profilingactivationinterceptor.java:104)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at org.apache.struts2.interceptor.debugging.debugginginterceptor.intercept(debugginginterceptor.java:267)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at com.opensymphony.xwork2.interceptor.chaininginterceptor.intercept(chaininginterceptor.java:130)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at com.opensymphony.xwork2.interceptor.i18ninterceptor.intercept(i18ninterceptor.java:143)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at com.opensymphony.xwork2.interceptor.prepareinterceptor.dointercept(prepareinterceptor.java:137)
     at com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:86)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at org.apache.struts2.interceptor.servletconfiginterceptor.intercept(servletconfiginterceptor.java:164)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at com.opensymphony.xwork2.interceptor.aliasinterceptor.intercept(aliasinterceptor.java:130)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at com.opensymphony.xwork2.interceptor.exceptionmappinginterceptor.intercept(exceptionmappinginterceptor.java:176)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:230)
     at com.opensymphony.xwork2.defaultactioninvocation$1.doprofiling(defaultactioninvocation.java:229)
     at com.opensymphony.xwork2.util.profiling.utiltimerstack.profile(utiltimerstack.java:456)
     at com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:227)
     at org.apache.struts2.impl.strutsactionproxy.execute(strutsactionproxy.java:52)
     at org.apache.struts2.dispatcher.dispatcher.serviceaction(dispatcher.java:477)
     at org.apache.struts2.dispatcher.filterdispatcher.dofilter(filterdispatcher.java:467)
     at org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:235)
     at org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206)
     at org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter.java:96)
     at org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:76)
     at org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:235)
     at org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206)
     at org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:233)
     at org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:191)
     at org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:127)
     at org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:102)
     at org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:109)
     at org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:293)
     at org.apache.coyote.http11.http11processor.process(http11processor.java:859)
     at org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:602)
     at org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:489)
     at java.lang.thread.run(thread.java:619)

原因是web-inf lib下有多个jstl jar包的原因 删除一个重新启动 一切ok !

上一篇:

下一篇: