users@jersey.java.net

[Jersey] Re: Beginner problem with ServletContext

From: <balistick_at_gmail.com>
Date: Thu, 2 Dec 2010 05:32:16 -0800 (PST)

Thanks for the answer Paul. I've modified my pom file by adding the
grizzly dependency and removing the inmemory one. However, i still
can't run my test in the IDE, as the servlet context is not injected in
my variable :/ The code runs fine if i deploy it to jetty server.

@Context ServletContext myContext is null at the runtime.

I think i mess up with the WebAppDescriptor builder :

    public myProcessorTest() throws Exception{
        super(new WebAppDescriptor.Builder("com.domain").build());
    }

Maybe someone can give me clues on what's wrong here !

Thanks