users@jersey.java.net

Re: [Jersey] Rid off the _at_at symbol on JSON responses?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 15 Dec 2009 10:23:16 +0100

On Dec 14, 2009, at 8:49 PM, Tatu Saloranta wrote:

> On Mon, Dec 14, 2009 at 4:47 AM, Paul Sandoz <Paul.Sandoz_at_sun.com>
> wrote:
> ...
>> Some observations when using Jackson 1.3.1:
>>
>> - when including the dependency on jackson-jaxrs version 1.3.1 i
>> also had to
>> add the following dependency otherwise a
>> ClassNotFound would occur:
>
> This may be partially my fault: 1.3.1 did have accidental back
> dependency from jackson-jaxrs module to jackson-xc (xml
> compatibility). 1.3.2 fixes this particular issue.
>
> You do need xc module to use JAXB annotations; however, if you are not
> doing that, it should be possible to omit it. 1.3.2 will do this
> correctly.
>

Thanks, I upgraded the sample referred to in the blog to 1.3.2 and
verified that the jackson-xc and jaxb dependencies are no longer
required.


> But it probably does make sense for Jersey to include both, since many
> users would want to use JAXB annotations.
> (and for this, there is the added JacksonJaxbJsonProvider that extends
> basic JacksonJsonProvider, that will register JAXB annotations
> automatically)
>

Yes, i think the combination is popular but Jersey does not have a
static dependency on JAXB.

Paul.