users@jersey.java.net

Re: [Jersey] _at_GET and _at_Context HttpServletRequest

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 16 Jun 2009 12:19:22 +0200

On Jun 12, 2009, at 8:11 PM, Igor Minar wrote:

>
> On Jun 12, 2009, at 12:54 AM, Paul Sandoz wrote:
>
>>
>> On Jun 12, 2009, at 9:03 AM, Igor Minar wrote:
>>>
>>>>
>>>> Are you deploying using a Web container?
>>>
>>> I'm using SimpleServerFactory.
>>>
>>
>> That explains it, you are not using a Web container that supports
>> Servlet, hence there is no HttpServletRequest to inject.
>>
>> Use GrizzlyWebContainerFactory instead, as shown in the helloworld
>> sample.
>
> oh yeah, that explains a lot!
>
> Maybe the error message could be changed to be a bit more helpful?
>

I agree, we should signal which parameter could not be injected. Could
you log an issue?

Thanks,
Paul.