On Wed, Feb 20, 2013 at 8:42 PM, Noah White <emailnbw_at_gmail.com> wrote:
> OK good to know.
>
> My simple Jersey 2 test project is failing to serialize a POJO into JSON with:
>
> MessageBodyWriter not found for media type=application/json, type=class example.Movie, genericType=class example.Movie
> Is the Jackson 2 Jax-rs provider not bundled with GF4? With GF v3.1.2.2 the provider was JacksonProviderProxy was it not? I don't see that in the GF4 distro.
Many distributions still bundle Jackson 1.x, so I am guessing they
might be including that. Or alternatively providing their own JAX-RS
provider -- it's not lots of code and projects may find it more
convenient to add customizations.
But it should be possible to just use this one:
https://github.com/FasterXML/jackson-jaxrs-json-provider
which is the default one Jackson project maintains.
-+ Tatu +-