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:

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

jetty-users mailing list

Back to the top