[ 
https://issues.apache.org/jira/browse/KARAF-6093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Baptiste Onofré updated KARAF-6093:
----------------------------------------
    Component/s: karaf

> Error putting an attachment on a SOAP message via CXF due to javax.xml.soap
> ---------------------------------------------------------------------------
>
>                 Key: KARAF-6093
>                 URL: https://issues.apache.org/jira/browse/KARAF-6093
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.2
>            Reporter: Brandan Jeter
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> 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.
> {code:java}
> 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
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to