Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] JSR-356 "running in Jetty" check flawed?

How are you starting Jetty?
Also, how are you starting your webapp?

--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts


On Mon, Mar 17, 2014 at 4:11 PM, Alex Zuzin <carnatus@xxxxxxxxx> 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-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
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top