On Mon, Sep 20, 2010 at 3:17 AM, Ricardo Borillo <borillo_at_si.uji.es> wrote:
> Thanks Tatu, now I got it :)
Ok good!
>
> Added this dependency to my pom.xml:
>
> <dependency>
> <groupId>org.codehaus.jackson</groupId>
> <artifactId>jackson-jaxrs</artifactId>
> <version>1.1.1</version>
> </dependency>
>
> And added JacksonJsonProvider's package to the web.xml jersey init params:
>
> <servlet>
> <servlet-name>rest-api</servlet-name>
> <servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
> <init-param>
> <param-name>com.sun.jersey.config.property.packages</param-name>
> <param-value>org.codehaus.jackson.jaxrs;....</param-value>
> </init-param>
> ...
This should be useful for others, amongst other ways. There is one
minor potential issue with later versions of Jackson, as there are 2
alternate providers in this package, but otherwise it should work
great.
Also: if possible, it would make sense to use a later Jackson version
(latest now is 1.6). 1.1 works, but is not maintained any more in case
issues were found.
-+ Tatu +-