Correct, JSR-356 support in Jetty starts with Jetty 9.1

--
Joakim Erdfelt <[email protected]>
webtide.com <http://www.webtide.com/> - intalio.com/jetty
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty - cometd.org


On Tue, Mar 18, 2014 at 6:41 AM, Jesse McConnell
<[email protected]>wrote:

> you ought to be using the appropriate version of the jetty-maven-plugin
>
> org.eclipse.jetty:jetty-maven-plugin:9.1.3.v20140225
>
> cheers,
> jesse
> --
> jesse mcconnell
> [email protected]
>
>
> On Mon, Mar 17, 2014 at 6:53 PM, Alex Zuzin <[email protected]> wrote:
> > Maven Jetty plugin:
> >
> >             <plugin>
> >                 <!-- This plugin is needed for the servlet example -->
> >                 <groupId>org.mortbay.jetty</groupId>
> >                 <artifactId>jetty-maven-plugin</artifactId>
> >                 <version>8.1.14.v20131031</version>
> >             </plugin>
> >
> > The app is started by what's in the web.xml, nothing else is required.
> > The [app-class-name] is an FQN of a descendant of
> > javax.ws.rs.core.Application.
> > Jersey version is 2.5.1.
> >
> > --
> > "If you can't conceal it well, expose it with all your might"
> > Alex Zuzin
> >
> > On Monday, March 17, 2014 at 4:36 PM, [email protected]:
> >
> > Send jetty-users mailing list submissions to
> > [email protected]
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> > or, via email, send a message with subject or body 'help' to
> > [email protected]
> >
> > You can reach the person managing the list at
> > [email protected]
> >
> > 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
> > From: Joakim Erdfelt <[email protected]>
> > To: JETTY user mailing list <[email protected]>
> > Subject: Re: [jetty-users] JSR-356 "running in Jetty" check flawed?
> > Message-ID:
> > <cag4zzzcdqvmf2u2umeqejoadxmwc6kg3wqtspxwvltt7yn5...@mail.gmail.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > How are you starting Jetty?
> > Also, how are you starting your webapp?
> >
> > --
> > Joakim Erdfelt <[email protected]>
> > webtide.com <http://www.webtide.com/> - intalio.com/jetty
> > Expert advice, services and support from from the Jetty & CometD experts
> > eclipse.org/jetty - cometd.org
> >
> >
> > On Mon, Mar 17, 2014 at 4:11 PM, Alex Zuzin <[email protected]> wrote:
> >
> > 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");
> > }
> >
> > Web.xml:
> > <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee";
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="
> > http://java.sun.com/xml/ns/javaee
> > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";> <servlet>
> > <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
> > [email protected]
> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> >
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> > <
> https://dev.eclipse.org/mailman/private/jetty-users/attachments/20140317/b655a877/attachment.html
> >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Mon, 17 Mar 2014 16:24:55 -0700
> > From: Joakim Erdfelt <[email protected]>
> > To: David L Gangarapu <[email protected]>, JETTY user
> > mailing list <[email protected]>
> > 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:
> > <CAG4zZZB=-h5DKe82MQD4=4q1rawcphj4q5jsxfgo_zm6snm...@mail.gmail.com>
> > 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?
> >
> > --
> > Joakim Erdfelt <[email protected]>
> > webtide.com <http://www.webtide.com/> - intalio.com/jetty
> > Expert advice, services and support from from the Jetty & CometD experts
> > eclipse.org/jetty - cometd.org
> >
> >
> > On Mon, Mar 17, 2014 at 4:21 PM, David L Gangarapu <
> > [email protected]> wrote:
> >
> > 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
> > [email protected]
> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> >
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> > <
> https://dev.eclipse.org/mailman/private/jetty-users/attachments/20140317/20d90cf1/attachment.html
> >
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Mon, 17 Mar 2014 16:35:40 -0700 (PDT)
> > From: David L Gangarapu <[email protected]>
> > To: Joakim Erdfelt <[email protected]>, JETTY user mailing list
> > <[email protected]>
> > 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:
> > <[email protected]>
> > 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
> >
> >
> >
> >
> > On Monday, March 17, 2014 4:24 PM, Joakim Erdfelt <[email protected]>
> > wrote:
> > 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?
> >
> >
> > --
> > Joakim Erdfelt <[email protected]>
> > webtide.com?- intalio.com/jetty
> > Expert advice, services and support from?from the Jetty & CometD experts
> > eclipse.org/jetty?-?cometd.org
> >
> >
> > On Mon, Mar 17, 2014 at 4:21 PM, David L Gangarapu
> > <[email protected]> wrote:
> >
> > 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
> > [email protected]
> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> >
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> > <
> https://dev.eclipse.org/mailman/private/jetty-users/attachments/20140317/dc27f06d/attachment.html
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > jetty-users mailing list
> > [email protected]
> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> >
> >
> > End of jetty-users Digest, Vol 58, Issue 23
> > *******************************************
> >
> >
> >
> > _______________________________________________
> > jetty-users mailing list
> > [email protected]
> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> >
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to