tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: ClassCastException org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
Date Fri, 03 Aug 2012 08:12:13 GMT
2012/8/3 Dale Ogilvie <>:
> Hi,
> I'm seeing this problem below appearing now with one of our web-apps, google has not
helped me so far... There have been no changes with the web app in question, which was working,
so I'm picking something is going on with either the tomcat or OS (virtualized) environment,
but what? Any tips as to how to figure out what is going on?
> root cause
> java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast
to org.apache.jasper.el.ELContextImpl
>         org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
>         org.apache.jsp.WEB_002dINF.views.promoCodeWelcome_jsp._jspx_meth_c_005fout_005f0(
>         org.apache.jsp.WEB_002dINF.views.promoCodeWelcome_jsp._jspService(
>         org.apache.jasper.runtime.HttpJspBase.service(
>         javax.servlet.http.HttpServlet.service(
>         org.apache.jasper.servlet.JspServletWrapper.service(
>         org.apache.jasper.servlet.JspServlet.serviceJspFile(
>         org.apache.jasper.servlet.JspServlet.service(
>         javax.servlet.http.HttpServlet.service(
>         org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(
>         org.springframework.web.servlet.view.AbstractView.render(
>         org.springframework.web.servlet.DispatcherServlet.render(
>         org.springframework.web.servlet.DispatcherServlet.doDispatch(
>         org.springframework.web.servlet.DispatcherServlet.doService(
>         org.springframework.web.servlet.FrameworkServlet.processRequest(
>         org.springframework.web.servlet.FrameworkServlet.doGet(
>         javax.servlet.http.HttpServlet.service(
>         javax.servlet.http.HttpServlet.service(
>         jcifs.http.NtlmHttpFilter.doFilter(
> The app is deployed on Tomcat 7.0.27, java 1.6_026, erroring jsp line:
> <c:out value="${fn:length(promoCodeSpecCommand.user)}" />

1. Stop the application,
 clear its work folder (${catalina.base}/work/${engine}/${host}/${webapp})
 - so that JSPs are recompiled,
 then start it again?

(That is if JSPs were occasionally compiled against different version
of Tomcat).

If you are precompiling your JSPs at build time - check that they are
compiled against the same version of Tomcat (7.0.27).

2. What libraries do you use in your application?
Check you have in WEB-INF/lib of the deployed application.

(That is if some libraries there conflict with same libraries provided
by Tomcat).

There is no such class as "org.apache.jasper.runtime.ELContextImpl",
so whereever it comes from is the source of the problem.

You may search your jar files for the filename

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message