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 (http://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

Reply via email to