users@jersey.java.net

Re: [Jersey] Help with JacksonJSONProvider and Glassfish

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 05 Mar 2010 09:44:05 +0100

On Mar 4, 2010, at 11:07 PM, John Lister wrote:

> Paul Sandoz wrote:
>> Two other solutions:
>>
>> 1) place the names of the classes in a file META-INF/services/
>> jersey-server-components
>> that way the classes will get logged and you do not required to
>> know the provider interface
> Bizarrely, placing the provider in this file works. Which is good
> for me.
>

OK.

Do you have the jersey-json stuff in your class path? If so that might
explain why the specific META-INF/services interfaces files did not
work, because the Jersey JAXB JSON providers are taking precedence.

Paul.