Closed argenstijn closed 3 months ago
Any idea why?
ps i used
<artifactId>cxf-codegen-plugin</artifactId>
<version>4.0.4</version>
to generate my java code!
quarkus.jaxb.exclude-classes=jakarta.xml.ws.wsaddressing.W3CEndpointReference
Will fix the problem. But is this necessary?
Hi @argenstijn, thanks for the report. What happens here is that Quarkus CXF extensions bring classes into your application which Quarkus default JAXBContext considers conflicting. The problem is described in detail in https://github.com/quarkusio/quarkus/issues/31646.
I think you should decide how to proceed as follows:
JAXBContext
injection points and the problem may disappear.quarkus.jaxb.exclude-classes
to exclude classes you want the default context to ignore. You should know which classes/packages the default context needs to see. See also https://quarkus.io/guides/rest#xml-serialisationquarkus.jaxb.validate-jaxb-context = false
. This might be rather risky and you should prefer 2. as far as possible. @argenstijn feel free to reopen if there is still something unclear.
I got the following exception when marshalling object to a string:
version: quarkus-cxf-bom version 3.11.3