Closed mehulparmariitr closed 1 year ago
That resteasy-jackson-provider jar is using an unsupported old version of Jackson. One from 10 years ago.
You should not use that resteasy-jackson-provider lib and find a better maintained lib.
org.codehaus.jackson:jackson-mapper-asl and com.fasterxml.jackson.core:jackson-annotations are not related - please note the namespace differences.
@pjfanning Which jar can be used here to read fasterxml jackson 2 JSON files? I cant change the resteasy version, it has to be 3.9.0.
@mehulparmariitr your question has nothing to do with this project. You will have to do your own research.
With 2 seconds googling, I found https://mvnrepository.com/artifact/org.jboss.resteasy/resteasy-jackson2-provider - maybe you try this and maybe have a look around the web yourself.
@pjfanning i was under the impression this projects helps us choose provider for resteasy. And by adding this dependency I can provide fasterxml objectmapper to resteasy. Let me try with the dependency mentioned.
<dependency>
<groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-json-provider</artifactId>
<version>2.14.1</version>
</dependency>
@mehulparmariitr This project does provide JAX-RS provider implementations usable by JAX-RS implementations. But since actual usage is from side of those frameworks, and you usually get better help from their support forums.
I hope use of provider you indicated works: good luck!
we are using Resteasy 3.9.0.Final in our vanilla java project. I have an api method which reads a POJO(
Request
) written in Jackson com.fasterxml.jackson.core:jackson-annotations:2.10.0.But while reading it i get error -
But when I explicit read request in string and convert it into a
Request
class using ObjectMapper of Fasterxml then it works fine. How to force the api method to read POJO with FasterXML ObjectMapper instead of CodeHaus?I have this in my dependency tree also