Ok, you can add a file:

WEB-INF/classes/META-INF/services/javax.ws.rs.ext.Providers

In this file specify a FQN of the jackson provider and it should load 
it.  I don't know if the matching criteria conflicts with the 
JacksonJsonProvider or not.

You may be able to specify the provider directly within the context param

resteasy.resources and put the FQN there too, but I don't remember if it 
turns off scanning or not.

Otherwise, you just might have to manually specify each 
provider/resource you need.


On 10/24/11 1:40 PM, for...@paaro.com wrote:
> Then it works, but then the JacksonJsonProvider implementation is used,
> but I want JacksonJaxbJsonProvider implementation.
>
> On Mon, Oct 24, 2011 at 16:58, Bill Burke <bbu...@redhat.com
> <mailto:bbu...@redhat.com>> wrote:
>
>     Does it work if you *don't* add jackson provider.jar to your
>     web-inf/lib?  It comes packaged with AS7 already.
>
>
>     On 10/24/11 10:30 AM, for...@paaro.com <mailto:for...@paaro.com> wrote:
>
>         Yes, of course:
>         sample.war/WEB-INF/lib/__resteasy-jackson-provider-2.2.__2.GA.jar
>
>         On Mon, Oct 24, 2011 at 16:20, Bill Burke <bbu...@redhat.com
>         <mailto:bbu...@redhat.com>
>         <mailto:bbu...@redhat.com <mailto:bbu...@redhat.com>>> wrote:
>
>             So you added jackson provider .jar to your WEB-INF/lib?
>
>             On 10/24/11 9:26 AM, for...@paaro.com
>         <mailto:for...@paaro.com> <mailto:for...@paaro.com
>         <mailto:for...@paaro.com>> wrote:
>          > I used this archetype to generate a sample project:
>          >
>          >
>         
> https://docs.jboss.org/author/__display/AS7/Creating+your+own+__application
>         
> <https://docs.jboss.org/author/display/AS7/Creating+your+own+application>
>          >
>          > I have JBoss AS 7.0.1. The example works well (as you can see, no
>          > web.xml is used). But when trying to add resteasy jackson
>             provider, the
>          > aforementioned problems appear. Any clues?
>          >
>          > Thanks!
>          >
>          > On Mon, Oct 24, 2011 at 14:56, Bill Burke <bbu...@redhat.com
>         <mailto:bbu...@redhat.com>
>         <mailto:bbu...@redhat.com <mailto:bbu...@redhat.com>>
>          > <mailto:bbu...@redhat.com <mailto:bbu...@redhat.com>
>         <mailto:bbu...@redhat.com <mailto:bbu...@redhat.com>>>> wrote:
>          >
>          >     How can I reproduce the problem?  What app server?  What does
>             your
>          >     web.xml look like?
>          >
>          >     Thanks
>          >
>          >
>          >
>          >
>
>           
> ------------------------------__------------------------------__------------------
>          > The demand for IT networking professionals continues to grow,
>         and the
>          > demand for specialized networking skills is growing even more
>             rapidly.
>          > Take a complimentary Learning@Cisco Self-Assessment and learn
>          > about Cisco certifications, training, and career opportunities.
>          > http://p.sf.net/sfu/cisco-__dev2dev
>         <http://p.sf.net/sfu/cisco-dev2dev>
>          >
>          >
>          >
>          > _________________________________________________
>          > Resteasy-users mailing list
>          > Resteasy-users@lists.__sourceforge.net
>         <mailto:Resteasy-users@lists.sourceforge.net>
>         <mailto:Resteasy-users@lists.__sourceforge.net
>         <mailto:Resteasy-users@lists.sourceforge.net>>
>
>          > https://lists.sourceforge.net/__lists/listinfo/resteasy-users
>         <https://lists.sourceforge.net/lists/listinfo/resteasy-users>
>
>             --
>             Bill Burke
>             JBoss, a division of Red Hat
>         http://bill.burkecentral.com
>
>
>           
> ------------------------------__------------------------------__------------------
>             The demand for IT networking professionals continues to
>         grow, and the
>             demand for specialized networking skills is growing even
>         more rapidly.
>             Take a complimentary Learning@Cisco Self-Assessment and learn
>             about Cisco certifications, training, and career opportunities.
>         http://p.sf.net/sfu/cisco-__dev2dev
>         <http://p.sf.net/sfu/cisco-dev2dev>
>             _________________________________________________
>             Resteasy-users mailing list
>         Resteasy-users@lists.__sourceforge.net
>         <mailto:Resteasy-users@lists.sourceforge.net>
>         <mailto:Resteasy-users@lists.__sourceforge.net
>         <mailto:Resteasy-users@lists.sourceforge.net>>
>         https://lists.sourceforge.net/__lists/listinfo/resteasy-users
>         <https://lists.sourceforge.net/lists/listinfo/resteasy-users>
>
>
>
>     --
>     Bill Burke
>     JBoss, a division of Red Hat
>     http://bill.burkecentral.com
>
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to