Send jetty-users mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of jetty-users digest..."
Today's Topics:
1. Re: JSR-356 "running in Jetty" check flawed? (Joakim Erdfelt)
2. Re: org.apache.jasper.JasperException:
java.lang.ClassCastException:
org.apache.jasper.runtime.ELContextImpl cannot be cast to
org.apache.jasper.runtime.ELContextImpl (Joakim Erdfelt)
3. Re: org.apache.jasper.JasperException:
java.lang.ClassCastException:
org.apache.jasper.runtime.ELContextImpl cannot be cast to
org.apache.jasper.runtime.ELContextImpl (David L Gangarapu)
----------------------------------------------------------------------
Message: 1
Date: Mon, 17 Mar 2014 16:23:22 -0700
Subject: Re: [jetty-users] JSR-356 "running in Jetty" check flawed?
Message-ID:
Content-Type: text/plain; charset="iso-8859-1"
How are you starting Jetty?
Also, how are you starting your webapp?
--
Expert advice, services and support from from the Jetty & CometD experts
All,
attempting to run JSR-356 with a Jersey app, getting "javax.servlet.ServletException:
Not running on Jetty, JSR-356 support disabled".
Specifically, org.eclipse.jetty.server.handler.ContextHandler#getCurrentContext()
returns null, triggering this on line #92 of
WebSocketServerContainerInitializer:
if (handler == null)
{
throw new ServletException("Not running on Jetty, JSR-356
support disabled");
}
<servlet-name>[app-class-name]</servlet-name> </servlet> <servlet-mapping>
<servlet-name>[app-class-name]</servlet-name> <url-pattern>/*</url-pattern>
</servlet-mapping> </web-app>
Jetty version: 9.1.3.v20140225
Any help greatly appreciated - this is a total blocker for me.
--
"If you can't conceal it well, expose it with all your might"
Alex Zuzin
_______________________________________________
jetty-users mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Mon, 17 Mar 2014 16:24:55 -0700
Subject: Re: [jetty-users] org.apache.jasper.JasperException:
java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl
cannot be cast to org.apache.jasper.runtime.ELContextImpl
Message-ID:
Content-Type: text/plain; charset="iso-8859-1"
That specific error usually points to two or more standard EL jars (at
different versions) present in your webapp.
What are your WEB-INF/lib/*.jar files?
--
Expert advice, services and support from from the Jetty & CometD experts
On Mon, Mar 17, 2014 at 4:21 PM, David L Gangarapu <
Can someone please help me with the error ( see stack trace below ).
I have two war files with different contexts and I am trying to run them
using jetty runner.
Each Individual war files get loaded and run well if I rum them
separately...
But when I combine them both, only one of them works and the 2nd context
gives me these errors...
I have these jars included in the war file:
<include name="jetty-server-9.1.0.v20131115.jar" />
<include name="jetty-util-9.1.0.v20131115.jar" />
<include name="javax.servlet.jsp-2.3.2.jar" />
<include name="jetty-jsp-jdt-2.3.3.jar" />
I have this system property setting :
-Dorg.apache.jasper.compiler.disablejsr199=true
Thank you for your help.
David
org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.runtime.ELContextImpl
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:440)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:696)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:526)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:586)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1110)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:453)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1044)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:261)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:101)
... MORE....
Caused by: java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.runtime.ELContextImpl
at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1009)
at org.apache.jsp.views.error_jsp._jspService(org.apache.jsp.views.error_jsp:52)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
... 36 more
Caused by:
java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.runtime.ELContextImpl
at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1009)
at org.apache.jsp.views.error_jsp._jspService(org.apache.jsp.views.error_jsp:52)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
_______________________________________________
jetty-users mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 3
Date: Mon, 17 Mar 2014 16:35:40 -0700 (PDT)
Subject: Re: [jetty-users] org.apache.jasper.JasperException:
java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl
cannot be cast to org.apache.jasper.runtime.ELContextImpl
Message-ID:
Content-Type: text/plain; charset="iso-8859-1"
Joakim,
thank you for the reply...Here is the list of files in both war files:
jetty-server-9.1.0.v20131115.jar
jetty-util-9.1.0.v20131115.jar
javax.servlet.jsp-2.3.2.jar
jetty-jsp-jdt-2.3.3.jar
Thank you.
David
That specific error usually points to two or more standard EL jars (at different versions) present in your webapp.
What are your WEB-INF/lib/*.jar files?
--
Expert advice, services and support from?from the Jetty & CometD experts
Can someone please help me with the error ( see stack trace below ).
I have two war files with different contexts and I am trying to run them using jetty runner.
Each Individual war files get loaded and run well if I rum them separately...
But when I combine them both, only one of them works and the 2nd context gives me these errors...
I have these jars included in the war file:
? ? ? ? ? ? ? ? <include name="jetty-server-9.1.0.v20131115.jar" />
? ? ? ? ? ? ? ? <include name="jetty-util-9.1.0.v20131115.jar" />
? ? ? ? ? ? ? ? <include name="javax.servlet.jsp-2.3.2.jar" />
? ?<include name="jetty-jsp-jdt-2.3.3.jar" />
I have this system property setting :
-Dorg.apache.jasper.compiler.disablejsr199=true?
Thank you for your help.
David
org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.runtime.ELContextImpl at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:440) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:696) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:526) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:586) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1110) at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:453) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1044) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:261) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:101)
... MORE....
Caused by: java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.runtime.ELContextImpl at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1009) at org.apache.jsp.views.error_jsp._jspService(org.apache.jsp.views.error_jsp:52) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411) ... 36 more
Caused by:
java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.runtime.ELContextImpl at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1009) at org.apache.jsp.views.error_jsp._jspService(org.apache.jsp.views.error_jsp:52) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
_______________________________________________
jetty-users mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
_______________________________________________
jetty-users mailing list
End of jetty-users Digest, Vol 58, Issue 23
*******************************************