JiriOndrusek opened a new issue, #5561: URL: https://github.com/apache/camel-quarkus/issues/5561
### Bug description Recent camel upgrade https://github.com/apache/camel/commit/d0eb12c68a8ccc343ef1c0a37620b5f7168225f0 changed `ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may` from 6.0.1 to 6.1.2.2. This change brought transitive dependency `org.ogce:xpp3:jar:1.1.6` which contains class `javax.xml.namespace.QName` The same class exists in core java Therefore the following error is thrown during execution of Fhir tests `FhirR4Test#marshalUnmarshal`. ``` Caused by: java.lang.LinkageError: loader constraint violation: loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @5423a17 wants to load class javax.xml.namespace.QName. A different class with the same name was previously loaded by 'bootstrap'. (javax.xml.namespace.QName is in module java.xml of loader 'bootstrap') ``` The fact that the error happens only for 1 test means, that the code is really used by that test. So as a quick solution I excluded `org.ogce:xpp3` in the bom - https://github.com/apache/camel-quarkus/blob/camel-main/poms/bom/pom.xml#L6039-L6042 Both JVM and native tests succeed with such exclusion. Therefore the "quick fix" seems to be correct. I doubt a little bit, whether another slightly different configuration can be used, which could bring a failure due to different class. The class from `org.ogce:xpp3` contains 1 method, which is not part of the class from java: ``` private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); this.namespaceURI = this.namespaceURI.intern(); this.localPart = this.localPart.intern(); this.prefix = this.prefix.intern(); } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org