Enunciate
generates the cxf-jaxrs-servlet.xml
file automatically and specifies: org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider
as the JAX-RS
provider. This class has changed to com.fasterxml.jackson.jaxrs.JacksonJaxbJsonProvider
in the latest Jackson
library. How can I make Enunciate
specify the new class as the JSON
provider in the automatically generated file? Or can I make Enunciate
to use a user provided XML
file?
I had a similar issue and am using Maven with Spring. I was able to solve this by using the maven replacer plugin and setting it to overwrite the org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider in jaxrs:providers and replacing it with com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With