users@jersey.java.net

[Jersey] Re: Injection of HttpServletRequest-Context in ContainerRequestFilter does not work

From: Ashwin Ravindran <ashw.reddi_at_gmail.com>
Date: Tue, 18 Jun 2013 14:31:20 -0500

I got request object into my filter using ResourceContext. My problem is
solved. Thanks


On Tue, Jun 18, 2013 at 11:49 AM, Ashwin Ravindran <ashw.reddi_at_gmail.com>wrote:

> Thanks for reply. I am using in-house web server and have some validation
> methods for cookies inside webserverrequest object. I wanted to access this
> method in my filter so thought of injecting Request object. I could also
> see issue opened up for this issue but could not see any updates on it.
>
>
> On Tue, Jun 18, 2013 at 10:34 AM, Ashwin Ravindran <ashw.reddi_at_gmail.com>wrote:
>
>> Hey,
>>
>> I am using Jersey 2.0 and not able to inject Request object into my
>> filter. I am getting java.lang.IllegalStateException: Not inside a
>> request scope this error while trying to inject. Please let me know whether
>> there is any work around for this issue
>>
>> --
>> Thanks
>> Ashwin
>>
>
>
>
> --
> Thanks
> Ashwin
>



-- 
Thanks
Ashwin