Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] classloader problem with Jetty 9.3.15 / CometD 3.1.0

forgot to add: the problem goes away entirely when disabling the WebSockets transport on the server and also it does not occur on Windows - I am getting this error on Linux only.

thanks,
Michele

On 10 January 2017 at 14:45, Michele Rossi <michele.rossi@xxxxxxxxx> wrote:
hi,

I am getting the following exception when trying to start up the WebSockets transport using CometD 3.1.0 and Jetty 9.3.15:


14:39:16.244|WARN |o.e.j.d.DeploymentManager||Unable to reach node goal: started
java.lang.LinkageError: loader constraint violation: when resolving method "org.eclipse.jetty.websocket.server.NativeWebSocketConfiguration.addMapping(Lorg/eclipse/jetty/http/pathmap/PathSpec;Lorg/eclipse/jetty/websocket/servlet/WebSocketCreator;)V" the class loader (instance of org/eclipse/jetty/webapp/WebAppClassLoader) of the current class, org/cometd/websocket/server/JettyWebSocketTransport, and the class loader (instance of org/eclipse/jetty/start/Classpath$Loader) for the method's defining class, org/eclipse/jetty/websocket/server/NativeWebSocketConfiguration, have different Class objects for the type org/eclipse/jetty/http/pathmap/PathSpec used in the signature
        at org.cometd.websocket.server.JettyWebSocketTransport.init(JettyWebSocketTransport.java:75)
        at org.cometd.server.BayeuxServerImpl.initializeServerTransports(BayeuxServerImpl.java:255)
        at org.cometd.server.BayeuxServerImpl.doStart(BayeuxServerImpl.java:135)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.cometd.server.CometDServlet.init(CometDServlet.java:64)



Any clues on what might be causing it?

It did not occur with previous versions of Jetty / CometD.


thanks,
Michele




Back to the top