java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.apache.felix.http.base.internal.listener.AbstractListenerManager.addingService(Lorg/osgi/framework/ServiceReference;)Ljava/lang/Object;" the class lo ader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, org/apache/felix/http/base/internal/listener/AbstractListenerManager, and its superclass loader (instance of org/apache/catalina/loa der/WebappClassLoader), have different Class objects for the type org/osgi/framework/ServiceReference used in the signature

felix-users | itay hindy | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Re: Class loading issues for embedded felix within tomcat

    felix-users | 4 years ago | itay hindy
    java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.apache.felix.http.base.internal.listener.AbstractListenerManager.addingService(Lorg/osgi/framework/ServiceReference;)Ljava/lang/Object;" the class lo ader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, org/apache/felix/http/base/internal/listener/AbstractListenerManager, and its superclass loader (instance of org/apache/catalina/loa der/WebappClassLoader), have different Class objects for the type org/osgi/framework/ServiceReference used in the signature
  2. 0

    Configuration for multiple tomcat wars each with embedded felix

    felix-users | 4 years ago | itay hindy
    java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.apache.felix.http.base.internal.listener.AbstractListenerManager.addingService(Lorg/osgi/framework/ServiceReference;)Ljava/lang/Object;" the class lo ader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, org/apache/felix/http/base/internal/listener/AbstractListenerManager, and its superclass loader (instance of org/apache/catalina/loa der/WebappClassLoader), have different Class objects for the type org/osgi/framework/ServiceReference used in the signature

    Root Cause Analysis

    1. java.lang.LinkageError

      loader constraint violation: when resolving overridden method "org.apache.felix.http.base.internal.listener.AbstractListenerManager.addingService(Lorg/osgi/framework/ServiceReference;)Ljava/lang/Object;" the class lo ader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, org/apache/felix/http/base/internal/listener/AbstractListenerManager, and its superclass loader (instance of org/apache/catalina/loa der/WebappClassLoader), have different Class objects for the type org/osgi/framework/ServiceReference used in the signature

      at org.apache.felix.http.base.internal.HttpServiceController.<init>()
    2. Felix Http Bridge
      HttpServiceController.<init>
      1. org.apache.felix.http.base.internal.HttpServiceController.<init>(HttpServiceController.java:76)
      1 frame