Tomcat EL表达式的错误

出错服务一直没有动过,最近添加了几个服务到tomcat下,没想到影响到之前的。

访问直接拋异常,500错误

Dec 10, 2014 10:06:51 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [] threw exception [An exception occurred processing JSP page /userLogins.jsp at line 116

113:    <a href="#" onclick="createCode()">???????</a>
114:         </div>
115:         <div class="YZM">   
116:         <span id="ErrorLabel" style="color:Red;" align="center">${message}</span>
117:         </div>
118:         
119:       <div align="center" style="padding:0px 20px;">


Stacktrace:] with root cause
java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
        at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:1023)
        at org.apache.jsp.login.userLogins_jsp._jspService(userLogins_jsp.java:192)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)

原因

EL表达式的错误

解决办法

编辑tomcat/conf/context.xml文件,在<Context>标记下添加<Loader delegate="true" />

<Context>
<Loader delegate="true" />
    <!-- Default set of monitored resources -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>

参考:

EL表达式错误:http://zhidao.baidu.com/link?url=tRfNLBCEO0AlBnzj3WhvroP85IODNR44hhNi-y5ThATcGtwmvvFwEpLD7ntk5V1SszkSGuEAQydMP8agieZYIq

- THE END -
版权声明:
转载原创文章请注明,文章出处:http://kinggoo.com
原文地址:http://kinggoo.com/tomcat-el-error.htm
发表评论?

6 条评论。

  1. 这么复杂,好难看的懂啊

发表评论