Skip to main content

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


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="" xmlns:xsi="" xsi:schemaLocation=""> <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

Back to the top