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:    ???????
114:         
115:
116: ${message} 117:
118: 119:
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" />



    
    WEB-INF/web.xml

参考:

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

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

6 条评论。

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

发表评论


此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据