You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2020/12/11 15:48:11 UTC

[camel-quarkus] 06/06: Fix java.lang.LinkageError: loader constraint violation: when resolving field DATETIME of type javax.xml.namespace.QName intruduced after CSimple language support #2036

This is an automated email from the ASF dual-hosted git repository.

ppalaga pushed a commit to branch camel-master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit e8e20fd46c5a2c5c580b9e90869353c2252ca934
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Fri Dec 11 11:57:50 2020 +0100

    Fix java.lang.LinkageError: loader constraint violation: when resolving field DATETIME of type javax.xml.namespace.QName intruduced after CSimple language support #2036
---
 extensions-core/xml-jaxb/runtime/pom.xml | 12 ++++++++++++
 extensions/xstream/runtime/pom.xml       |  6 ++++++
 2 files changed, 18 insertions(+)

diff --git a/extensions-core/xml-jaxb/runtime/pom.xml b/extensions-core/xml-jaxb/runtime/pom.xml
index ed7b880..dfcd852 100644
--- a/extensions-core/xml-jaxb/runtime/pom.xml
+++ b/extensions-core/xml-jaxb/runtime/pom.xml
@@ -52,10 +52,22 @@
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-xml-jaxb</artifactId>
             <exclusions>
+                <!-- We prefer using -->
+                <!-- the spec jar org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec-parent -->
+                <!-- and the implementation jar org.glassfish.jaxb:jaxb-runtime -->
+                <!-- pulled via io.quarkus:quarkus-jaxb -->
                 <exclusion>
                     <groupId>jakarta.xml.bind</groupId>
                     <artifactId>jakarta.xml.bind-api</artifactId>
                 </exclusion>
+                <exclusion>
+                    <groupId>com.sun.xml.bind</groupId>
+                    <artifactId>jaxb-core</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>com.sun.xml.bind</groupId>
+                    <artifactId>jaxb-impl</artifactId>
+                </exclusion>
             </exclusions>
         </dependency>
         <dependency>
diff --git a/extensions/xstream/runtime/pom.xml b/extensions/xstream/runtime/pom.xml
index dcfc522..37e0aa7 100644
--- a/extensions/xstream/runtime/pom.xml
+++ b/extensions/xstream/runtime/pom.xml
@@ -59,6 +59,12 @@
         <dependency>
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-xstream</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>stax</groupId>
+                    <artifactId>stax-api</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <dependency>
             <groupId>org.graalvm.nativeimage</groupId>