users@jersey.java.net

Re: [Jersey] ServeltContext is always null

From: George Hallak <mysitesemail_at_gmail.com>
Date: Thu, 30 Jul 2009 14:08:51 -0400

I'm using the version that comes with Netbeans 6.5, which is 1.0.It's
configured to be deployed as a servlet, and I'm deploying it on Tomcat.

On Thu, Jul 30, 2009 at 1:28 AM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:

> Hi George,
>
> A couple of questions:
>
> - what version of Jersey are you using?
>
> - have you configured Jersey to be deployed as a Servlet or a Filter?
>
> - are you deploying using a Web container, such as GlassFish or Tomcat, or
> an embedded server such as Grizzly ?
>
> Paul.
>
>
> On Jul 29, 2009, at 10:35 PM, George Hallak wrote:
>
> Hi,
>>
>> I'm trying to inject ServletContext, but it's always null. The code I'm
>> using is:
>>
>> @Context ServletContext context;
>>
>> I'm able to inject HttpServletRequest, but ServletContext is always null.
>> Any suggestion?
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>