Hi Richard, For the tracking:
Pax Web issue: https://github.com/ops4j/org.ops4j.pax.web/issues/1602 <https://github.com/ops4j/org.ops4j.pax.web/issues/1602> Karaf Jira: https://issues.apache.org/jira/browse/KARAF-7135 <https://issues.apache.org/jira/browse/KARAF-7135> Regards JB > Le 4 mai 2021 à 11:14, Richard Hierlmeier <[email protected]> a > écrit : > > > The feature pax-jetty 9.4.38.v20210224 in Karaf 4.3.1 brings the bundle > mvn:javax.websocket/javax.websocket-api/1.1 > > I think this bundle has not a complete OSGI header. The following capability > is missing. > > Require-Capability = > osgi.extender;filter:=(osgi.extender=osgi.serviceloader.processor), > > osgi.serviceloader;cardinality:=multiple;filter:=(osgi.serviceloader=javax.websocket.server.ServerEndpointConfig$Configurator);resolution:=optional > > When I start an application with web socket support the I get the following > error: > > java.lang.RuntimeException: Cannot load platform configurator > at > javax.websocket.server.ServerEndpointConfig$Configurator.fetchContainerDefaultConfigurator(ServerEndpointConfig.java:123) > at > javax.websocket.server.ServerEndpointConfig$Configurator.getContainerDefaultConfigurator(ServerEndpointConfig.java:128) > at > javax.websocket.server.ServerEndpointConfig$Configurator.checkOrigin(ServerEndpointConfig.java:192) > at > org.eclipse.jetty.websocket.jsr356.server.JsrCreator.createWebSocket(JsrCreator.java:87) > at > org.eclipse.jetty.websocket.server.WebSocketServerFactory.acceptWebSocket(WebSocketServerFactory.java:230) > at > org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:260) > at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) > at > org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601) > > > I solved this problem by adding a bundle with a Fragment-Host for > javax.websocket-api with this capability. > > Is it possible to include > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax-websocket-api/1.1_1? > > Regards > > Richard >
