Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-dev] CometD JettyWebSocketTransport with Jetty 9.3.8

Hi,

I am trying to upgrade my web app to Jetty 9.3.8 and I having some issues:


The following code (which works fine with Jetty 9.3.6.v20151106) fails with a 

"java.lang.NoClassDefFoundError: org/eclipse/jetty/websocket/server/pathmap/PathSpec"


 private void configureTransports(boolean enableWebSockets) {
        List<ServerTransport> transports = new ArrayList<>();
        ServerTransport t1 = new JSONTransport(this);
        ServerTransport t2 = new JSONPTransport(this);

        transports.add(t1);
        transports.add(t2);
        if (enableWebSockets) {
            ServerTransport t3 = new JettyWebSocketTransport(this);
            transports.add(t3);
        }
        setTransports(transports);
        setAllowedTransports(transports.stream().map(p -> p.getName()).collect(Collectors.toList()));
    }


Having a look at JettyWebSocketTransport, it has a reference to org.eclipse.jetty.websocket.server.pathmap.ServletPathSpec (now deprecated).

However some other part of the cometd code refers to the now missing org.eclipse.jetty.websocket.server.pathmap.PathSpec class.

I haven't found the exact reference.


I am just wondering whether there is anything I can do to address this (besides dropping WebSockets).

Are there any plans to update CometD to work with the latest Jetty?

I am asking on this list because I know that Simone works on both projects and because it's a Jetty-CometD integration issue, hope it's all right.


thanks,
Michele





Back to the top