users@jersey.java.net

[Jersey] Re: Test Grizzly 2 not picking up Provider classes

From: Gary Moore <gary.moore_at_gmail.com>
Date: Wed, 4 May 2011 11:03:14 -0400

No test case yet, but here are more details:

My AppConfig class, POM, Test setup, and console output for Jersey 1.6
with Grizzly 1. All tests pass. The provider classes get picked up
fine here.

https://gist.github.com/955347

The POM and console output for Jersey 1.6 with Grizzly 2. None of the
providers get picked up here. The only change is changing
jersey-test-framework-grizzly->jersey-test-framework-grizzly2

https://gist.github.com/955359

An example of one of our providers:

https://github.com/fracturedatlas/ATHENA/blob/master/core/web-resources/src/main/java/org/fracturedatlas/athena/web/serialization/JsonTicketSerializer.java

Thanks,
Gary

On Tue, May 3, 2011 at 10:32 AM, Pavel Bucek <pavel.bucek_at_oracle.com> wrote:
> It might be a big deal for us though..
>
> Testcase would be perfect, thanks in advance for it (I want to have this
> clarified/fixed before we release 1.7).
>
> Regards,
> Pavel
>
>
> On 5/3/11 2:41 PM, Gary Moore wrote:
>>
>> Pavel,
>>
>> Thanks for the reply.  I was just checking to see if anything had
>> changed that I missed.  I'm out of the office today but I'll post a
>> test case tomorrow.  For now, we just rolled back to the Grizzly 1
>> framework so it isn't a big deal.
>>
>> Thanks,
>> Gary
>>
>> On Tue, May 3, 2011 at 8:04 AM, Pavel Bucek<pavel.bucek_at_oracle.com>
>>  wrote:
>>>
>>> btw, I just found HttpHeadersTest in jersey-apache-client, which uses
>>> grizzly2 to start and uses @Provider and passes, so.. I'm not sure what
>>> is
>>> wrong/can't reproduce.
>>>
>>> Pavel
>>>
>>> On 5/3/11 1:46 PM, Pavel Bucek wrote:
>>>>
>>>> Hello Gary,
>>>>
>>>> Are you using Jersey test framework or just jersey-grizzly2 module? Can
>>>> you share more details/testcase?
>>>>
>>>> Thanks,
>>>> Pavel
>>>>
>>>> On 5/2/11 7:39 PM, Gary Moore wrote:
>>>>>
>>>>> We just moved to Jersey 1.6 this morning.  Jersey is find, and our
>>>>> Jersey Test container classes all pass with Grizzly 1.  Grizzly 2,
>>>>> however, doesn't pick up any of our MessageBodyWriters/Readers and
>>>>> responds to everything with 415 - Unsupported Media Type.  Anyone have
>>>>> details on how to initialize the Test Grizzly 2 container with our
>>>>> Provider classes?
>>>>>
>>>>> Thanks,
>>>>> Gary
>>>>>
>>>>
>>>
>>
>>
>
>



-- 
Gary Moore
http://www.gmoore.net