出错服务一直没有动过,最近添加了几个服务到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:
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 -
博主的php技术很好啊
博主很专业呀 😛
哈哈 只是遇到了这个问题
我一般遇到问题要么找人,要么查一下,这样记下来很少 🙁
哈哈 必须记录下来 其他人也会遇到的
这么复杂,好难看的懂啊