[resteasy-dev] RESTEASY-1486 and jackson

Tomaž Cerar tomaz.cerar at gmail.com
Tue Sep 27 05:01:35 EDT 2016


WildFly 10 and EAP7 both use jackson2 as default providers.
jackson1 is still there but you need to explicitly enable it.

On Mon, Sep 26, 2016 at 11:45 PM, Alessio Soldano <asoldano at redhat.com>
wrote:

> Il 26/09/2016 22:47, Ron Sigal ha scritto:
> > I see in https://access.redhat.com/articles/2158031 "JBoss Enterprise
> > Application Platform (EAP) 7 Included Modules" that jackson modules are
> > listing as "private" and jackson2 modules are "public".
> >
> > Is that also true for Wildfly 10? I'm not sure how to tell. I see,
> > though, that
> > https://docs.jboss.org/author/display/WFLY10/Implicit+
> module+dependencies+for+deployments
> > references org.jboss.resteasy.resteasy-jackson-provider.
> >
> > What I'm asking, really, is: Do we need to support jackson?
> Considering Jackson 2 was released in March 2012, I would say we should
> start moving away from jackson 1.x... (excluding the module in WildFly?
> marking it as deprecated?)
>
> As for the implicit module dependencies, I usually go and check the
> code; for jaxrs subsystem that's in
> org.jboss.as.jaxrs.deployment.JaxrsDependencyProcessor (see the
> addDependency calls in deploy method).
>
> > Also, I've been meaning to suggest that we do away with
> > resteasy-jboss-modules-<version>.zip(for AS 7) and rename
> > resteasy-jboss-modules-wf8-<version>.zip to
> > resteasy-jboss-modules-wf-<version>.zip (that is, get rid of the "8" in
> > "wf8").
> +1, I would have done that in the very next future, so feel free to go
> ahead on this :-)
>
>
> This said, going back to RESTEASY-1486, please see my first comment
> there. I believe JacksonJsonpInterceptor / Jackson2JsonpInterceptor is
> not enabled by default, despite the jackson / jackson2 modules being
> implicitly added as dependencies to the user deployments [1]. The
> META-INF/services/javax.ws.rs.ext.Providers in there does not list the
> jsonp interceptor, so I believe the user needs to explicitly ask for the
> provider to be installed (in the web.xml or programmatically). Am I  wrong?
>
> Cheers
> Alessio
>
>
> [1] note, the module dependency that's added to the deployment in the
> code has export=false.
>
> >
> > -Ron
> >
>
> _______________________________________________
> resteasy-dev mailing list
> resteasy-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/resteasy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/resteasy-dev/attachments/20160927/de8a1c84/attachment.html 


More information about the resteasy-dev mailing list