users@jersey.java.net

Re: Re: [Jersey] Help with JacksonJSONProvider and Glassfish

From: John Lister <john.lister_at_kickstone.co.uk>
Date: Thu, 04 Mar 2010 21:49:21 +0000

Paul Sandoz wrote:
> Also, where exactly did you place the META-INF/services directory? it
> should be under WEB-INF/classes or within the jar file in WEB-INF/lib.
>
Thanks I've now put the provider reference files in the right place and
the provider is now being loaded as expected, but I have one more question:
The Jackson provider doesn't seem to be being used, it is constructed
when the webapp is loaded, but the other methods such as isWritable and
writeTo are never called.

Have I missed something else?

I've managed to get it to work by creating my own provider class that
subclasses JacksonJsonProvider - which may be the way forward anyway as
I need to change a couple of configuration settings

Thanks

John