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

Error putting an attachment on a SOAP message via CXF due to javax.xml.soap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.2
    • 4.2.3
    • karaf
    • None

    Description

      As of https://github.com/brjeter/karaf/commit/50ccdc93a1ff1e619f808e13f38fbacbb26213c0#diff-9142d4f795c7f69aa9e8b7bc87e18a59L345, javax.activation is expected to be exported by a servicemix bundle instead of bundle 0. This is causing a LinkageError because javax.xml.soap uses javax.activation but is still being exported by bundle 0.

      loader constraint violation: when resolving method "javax.xml.soap.SOAPMessage.createAttachmentPart(Ljavax/activation/DataHandler;)Ljavax/xml/soap/AttachmentPart;" the class loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) of the current class, org/apache/cxf/binding/soap/saaj/SAAJInInterceptor, and the class loader (instance of <bootloader>) for the method's defining class, javax/xml/soap/SOAPMessage, have different Class objects for the type javax/activation/DataHandler used in the signature
      

       

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              brandan.jeter Brandan Jeter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: