سؤال

I am getting the following error when I try to build a project that uses Eclipse Jetty libraries

java.lang.IncompatibleClassChangeError: 
  class org.eclipse.jetty.server.AbstractConnector has interface 
  org.eclipse.jetty.http.HttpBuffers as super class

The specific Eclipse Jetty libraries I am using are:

'org.eclipse.jetty:jetty-websocket:8.1.7.v20120910',
'org.eclipse.jetty:jetty-client:8.1.7.v20120910'

What is the cause of the error and how do I fix it?

Thanks.

هل كانت مفيدة؟

المحلول 2

There was a camel-jetty dependency, which we replaced with relevant eclipse-jetty dependencies. That fixed the problem.

نصائح أخرى

looks like you have something else coming in dependency wise, or something very hinky going on with some classloaders, how are you using this, some sort of embedded usage?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top