jnorthr / socialauth

Automatically exported from code.google.com/p/socialauth
0 stars 0 forks source link

Exception in Struts demo #365

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Deploy to Tomcat 7.0.54
2.Run socialauth-java-sdk-4.6\examples\socialauth-struts-demo
3.On referring to the index.jsp an error occured

What do you see instead?
java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast 
to org.apache.jasper.el.ELContextImpl

What version of the product are you using? On what operating system?
4.6 on Win8.1

Please provide any additional information below.
Logs:
type Exception report

message java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot 
be cast to org.apache.jasper.el.ELContextImpl

description The server encountered an internal error that prevented it from 
fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.ClassCastException: 
org.apache.jasper.el.ELContextImpl cannot be cast to 
org.apache.jasper.el.ELContextImpl
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
    com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
root cause

java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast 
to org.apache.jasper.el.ELContextImpl
    org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:964)
    org.apache.jsp.index_jsp._jspx_meth_c_005fforEach_005f0(index_jsp.java:584)
    org.apache.jsp.index_jsp._jspService(index_jsp.java:138)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
    com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)

Original issue reported on code.google.com by promo...@gmail.com on 6 Sep 2014 at 9:32

GoogleCodeExporter commented 8 years ago
jsp-2.1.jar was added to Tomcat libs and to the webapps\strutsDemo\WEB_INF\libs 
with no success

Original comment by promo...@gmail.com on 6 Sep 2014 at 9:35

GoogleCodeExporter commented 8 years ago
In Jetty it was solved by adding 
-Dorg.apache.jasper.compiler.disablejsr199=true 

Original comment by promo...@gmail.com on 6 Sep 2014 at 10:14

GoogleCodeExporter commented 8 years ago
Maven should add all the required libs, so no need to add it manually. You can 
check the libraries folder and pom.xml file to check if any jar is missing or 
not.

Original comment by tarunnag...@gmail.com on 31 Oct 2014 at 1:22