I am migrating a JAX-RS application from WebSphere 8.0 to WebSphere Liberty 8.5.5.
In WebSphere 8.0, Jackson was provided by WebSphere. I can find jackson-core-asl-1.9.12.jar
, jackson-jaxrs-1.9.12.jar
, jackson-mapper-asl-1.9.12.jar
and jackson-xc-1.9.12.jar
files in the AppServer\plugins\
directory.
In the new application server (WebSphere Liberty), I get the following exception: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "myPropertyName"
. I think that this exception happens because the annotation @JsonIgnoreProperties(ignoreUnknown = true)
on the serialized classes does not work. My guess is that it happens because WebSphere Liberty 8.5.5 provides an older version of Jackson.
I tried to deploy the version of Jackson which I need with my application, but it did not help (I still have exceptions). How can I make WebSphere Liberty use the version of Jackson that I need?