Reputation: 10945
What should I have in my web.xml to be able to use version 2.1.3 of jackson ?
when using 1.9 I had to have:
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>org.codehaus.jackson.jaxrs;com.rewardy.ws</param-value>
</init-param>
<init-param>
<param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>
<param-value>true</param-value>
</init-param>
but this seems obsolete and I can find the docs to make it work the same. (or maybe I am still missing some files...
Upvotes: 0
Views: 1906
Reputation: 116552
Just add Jackson 2.x jars, including JAX-RS provider (for JSON, and perhaps XML). That will auto-register, and you should not need to set POJOMappingFeature at all.
Upvotes: 2