Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2290

should also endorse activation-api spec jar

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.3.2, 2.4.0, 3.0.0
    • None
    • None

    Description

      as javax/activation/DataHandler need be loaded from bootloader anyway(because we endorse other specs jars which need use javax/activation/DataHandler ), so we shouldn't load it as a bundle, to avoid LinkageError like
      Caused by: java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.apache.cxf.jaxb.attachment.JAXBAttachmentMarshaller.addSwaRefAttachment(Ljavax/activation/DataHandlerLjava/lang/String;" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, org/apache/cxf/jaxb/attachment/JAXBAttachmentMarshaller, and its superclass loader (instance of <bootloader>), have different Class objects for the type javax/activation/DataHandler used in the signature
      > at org.apache.cxf.jaxb.JAXBDataBase.getAttachmentMarshaller

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: