Bill my man! Works like a charm! Will test it more extensively, but the
first test (including resteasy jackson provider in the pom) worked.
Thanks!
On Tue, Oct 25, 2011 at 15:00, Bill Burke <[email protected]> wrote:
> Ok, I just released Resteasy 2.2.3. Basically I try and ignore
> constructors that will cause deployment errors. If you're using as7, you'll
> have to copy and modify the resteasy libs in the modules/ directory and edit
> the XML files in each jar directory to point to the correct resteasy
> libraries:
>
> modules/org/jboss/resteasy/...
>
>
> On 10/25/11 6:46 AM, [email protected] wrote:
>
>> Joe, I found that mkyong link, too, but I've hoped there is a solution
>> to it. Apparently not, for the time being.
>> Bill, I tried your suggestions, but none work. Manually registering all
>> the providers I think is out of the question, since we're building a
>> multi module project with common REST interface and would like modules
>> to register their own providers automatically via scanning.
>>
>> On Tue, Oct 25, 2011 at 01:34, Bill Burke <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> This is actually a problem with the Jackson implementation. The
>> JAX-RS specification states that the JAX-RS runtime must pick a
>> Provider constructor with the greatest number of parameters. The
>> problem is, Resteasy does not know how to resolve and inject the
>> parameters of the Jackson provider constructor with the most
>> parameters.
>>
>> I'm changing the implementation so that it won't pick constructors
>> with parameters that don't have a @Context implemention. Meanwhile,
>> you'll have to instantiate the provider yourself, or Subclass the
>> jackson one and register that.
>>
>>
>> On 10/24/11 7:03 PM, Joe Littlejohn wrote:
>>
>> I guess you're experiencing this problem:
>>
>> http://www.mkyong.com/__**webservices/jax-rs/illegal-to-**
>> __inject-a-message-body-into-**a-__singleton-into-public-org-**
>> __codehaus-jackson-jaxrs-__**jacksonjsonprovider/<http://www.mkyong.com/__webservices/jax-rs/illegal-to-__inject-a-message-body-into-a-__singleton-into-public-org-__codehaus-jackson-jaxrs-__jacksonjsonprovider/>
>> <http://www.mkyong.com/**webservices/jax-rs/illegal-to-**
>> inject-a-message-body-into-a-**singleton-into-public-org-**
>> codehaus-jackson-jaxrs-**jacksonjsonprovider/<http://www.mkyong.com/webservices/jax-rs/illegal-to-inject-a-message-body-into-a-singleton-into-public-org-codehaus-jackson-jaxrs-jacksonjsonprovider/>
>> >
>>
>> https://issues.jboss.org/__**browse/RESTEASY-503<https://issues.jboss.org/__browse/RESTEASY-503>
>>
>>
>> <https://issues.jboss.org/**browse/RESTEASY-503<https://issues.jboss.org/browse/RESTEASY-503>
>> >
>>
>> Bill, maybe it's worth adding your suggested workaround to
>> RESTEASY-503?
>>
>>
>> On 24 October 2011 18:40,<[email protected]
>> <mailto:[email protected]>> 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<[email protected]
>> <mailto:[email protected]>> 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, [email protected]
>> <mailto:[email protected]> 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<[email protected] <mailto:[email protected]>
>> <mailto:[email protected]
>> <mailto:[email protected]>>> wrote:
>>
>> So you added jackson provider .jar to your
>> WEB-INF/lib?
>>
>> On 10/24/11 9:26 AM, [email protected]
>> <mailto:[email protected]><**mailto:[email protected]
>>
>> <mailto:[email protected]>> 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>
>>
>> <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<[email protected] <mailto:[email protected]>
>> <mailto:[email protected] <mailto:[email protected]>>
>> > <mailto:[email protected]
>> <mailto:[email protected]><__**mailto:
>> [email protected] <mailto:[email protected]>>>>
>>
>> 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>
>>
>> <http://p.sf.net/sfu/cisco-**dev2dev<http://p.sf.net/sfu/cisco-dev2dev>
>> >
>> >
>> >
>> >
>> > ______________________________**
>> ___________________
>> > Resteasy-users mailing list
>> >
>> Resteasy-users@lists.__sourcef**orge.net<http://sourceforge.net>
>>
>> <mailto:Resteasy-users@lists.**sourceforge.net<[email protected]>
>> >
>> <mailto:Resteasy-users@lists._**_sourceforge.net
>>
>> <mailto:Resteasy-users@lists.**sourceforge.net<[email protected]>
>> >>
>> >
>> https://lists.sourceforge.net/**
>> __lists/listinfo/resteasy-**users<https://lists.sourceforge.net/__lists/listinfo/resteasy-users>
>> <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>
>>
>> <http://p.sf.net/sfu/cisco-**dev2dev<http://p.sf.net/sfu/cisco-dev2dev>
>> >
>> ______________________________**
>> ___________________
>> Resteasy-users mailing list
>>
>> Resteasy-users@lists.__sourcef**orge.net<http://sourceforge.net>
>>
>> <mailto:Resteasy-users@lists.**sourceforge.net<[email protected]>
>> >
>> <mailto:Resteasy-users@lists._**_sourceforge.net
>>
>> <mailto:Resteasy-users@lists.**sourceforge.net<[email protected]>
>> >>
>> https://lists.sourceforge.net/**
>> __lists/listinfo/resteasy-**users<https://lists.sourceforge.net/__lists/listinfo/resteasy-users>
>> <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>
>>
>> <http://p.sf.net/sfu/cisco-**dev2dev<http://p.sf.net/sfu/cisco-dev2dev>
>> >
>> ______________________________**___________________
>> Resteasy-users mailing list
>> Resteasy-users@lists.__sourcef**orge.net<http://sourceforge.net>
>>
>> <mailto:Resteasy-users@lists.**sourceforge.net<[email protected]>
>> >
>> https://lists.sourceforge.net/**__lists/listinfo/resteasy-**
>> users <https://lists.sourceforge.net/__lists/listinfo/resteasy-users> <
>> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/resteasy-users