On Mon, Jun 20, 2011 at 3:44 PM, charlesk <charlesk40_at_yahoo.com> wrote:
> Hi, Jakub
> I'm re-posting this to clarify things for my original question.
>
> I'm running jetty(tomcat) and along with jersey libs, jackson-jaxrs.jar is
> also included in the .war file because its transitive dependency of
> jersey-json.lib.
>
> In jackson-jaxrs.jar, there is a JacksonJaxbJsonProvider (or the
> JacksonJsonProvider) provider which I believe is being picked up when war is
> deployed and Jersey seems to pick this up. If I exclude the
> jackson-jaxrs.jar from my war, it uses the Jaxb json libs.
For what it is worth, as Jakub said, Jackson-jax jar does NOT included
META-INF provider settings which would make it auto-register (there
was a big debate on whether to add it for convenience, for 1.0, or
not) -- we (at jackson dev lists) figured that as nice as it is to
save couple of lines of explicit registration, it could cause issues,
esp. since loading order of jars could confuse things.
And I did not think Jersey itself would auto-detect jacson either. But
I do remember similar issues being brought up over time, so there must
be something adding implicit registrations.
-+ Tatu +-