[
https://issues.apache.org/jira/browse/KARAF-7276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17445355#comment-17445355
]
Freeman Yue Fang commented on KARAF-7276:
-----------------------------------------
Hi [~Gabrilevičius],
Please test the solution as a workaround for now for your case.
You need
1. rm $KARAF_HOME/lib/jdk9plus/javax.activation-1.2.0.jar
2. copy org.apache.servicemix.specs.activation-api-1.2.1-1.2.1_3.jar I attached
with this issue to $KARAF_HOME/lib/jdk9plus/ folder
3. edit $KARAF_HOME/etc/jre.properties, add oneline
{code}
javax.activation;version="1.2.1", \
{code}
under jre-9 property
4. rm -rf $KARAF_HOME/data folder and rerun your test.
Please tell me if this can fix the problem you run into.
Thanks!
Freeman
> LinkageError when receiving SOAP message with attachments
> ---------------------------------------------------------
>
> Key: KARAF-7276
> URL: https://issues.apache.org/jira/browse/KARAF-7276
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.3.3
> Environment: Java 11,
> CXF 4.3.3
> Reporter: Jokūbas
> Assignee: Freeman Yue Fang
> Priority: Major
> Attachments:
> org.apache.servicemix.specs.activation-api-1.2.1-1.2.1_3.jar
>
>
> LinkageError when receiving SOAP message with attachments:
> java.lang.LinkageError: loader constraint violation for class
> org.apache.cxf.jaxb.attachment.JAXBAttachmentUnmarshaller: when selecting
> overriding method 'javax.activation.DataHandler
> org.apache.cxf.jaxb.attachment.JAXBAttachmentUnmarshaller.getAttachmentAsDataHandler(java.lang.String)'
> the class loader
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @5d4d3872 of
> the selected method's type
> org.apache.cxf.jaxb.attachment.JAXBAttachmentUnmarshaller, and the class
> loader 'app' for its super type
> javax.xml.bind.attachment.AttachmentUnmarshaller have different Class objects
> for the type javax.activation.DataHandler used in the signature
> (org.apache.cxf.jaxb.attachment.JAXBAttachmentUnmarshaller is in unnamed
> module of loader
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @5d4d3872,
> parent loader java.net.URLClassLoader @184f6be2;
> javax.xml.bind.attachment.AttachmentUnmarshaller is in unnamed module of
> loader 'app')
> at
> org.apache.cxf.jaxb.JAXBDataBase.getAttachmentUnmarshaller(JAXBDataBase.java:88)
> ~[?:?]
--
This message was sent by Atlassian Jira
(v8.20.1#820001)