users@jersey.java.net

Re: [Jersey] Help with JacksonJSONProvider and Glassfish

From: Chris Carrier <ctcarrier_at_gmail.com>
Date: Wed, 3 Mar 2010 09:13:00 -0800

Are you packaging as an uber war? If so after you package open up
your resulting WAR file and make sure your files under the services
directory are still what you expect them to be. I had an issue when
packaging uber *ar that dependent jars had provider files that were
stomping mine.

Chris

On Wed, Mar 3, 2010 at 1:49 AM, John Lister <john.lister_at_kickstone.co.uk> wrote:
> Hi I'm trying to port a legacy application which has some nuances in the way
> it expects JSON to be output, all of which seem to be resolved if I use the
> Jackson provider, however I'm struggling to get it to work with glasfish.
> I've looked at the samples and various other articles on the web, but none
> deal with web applications (war files) or glassfish, only jar files. Taking
> the jersey sample, I've created a services directory within the war file
> META-INF directory and placed the two files in there specifying the jackson
> provider for reading and writing. But this doesn't seem to get work, I've
> also added all the latest jackson jar files to the project with no success.
>
> Have I missed something, or does this not work as I'd like?
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>