dev@jersey.java.net

Re: _at_Context ServletConfig in Tomcat 6

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Mon, 22 Nov 2010 13:19:03 +0100

Hi Timo,

I just did a quick test with GlassFish and it works fine for me.

Are you deploying Jersey as a servlet or a filter?

Paul.

On Nov 22, 2010, at 12:43 PM, Wolf, Timo wrote:

> Hi,
> I am using jersey 1.4 and extend the Application class to provide a
> Web-Application. To access the Servlet Configuration I am using a
> @Context ServletConfig sc property. Everything works fine when
> testing with com.sun.jersey.jersey-test-framework and grizzly web
> server.
>
> But when building the war file and deploying to Tomcat 6 I got the
> following problem:
>
> Nov 22, 2010 11:41:56 AM com.sun.jersey.spi.inject.Errors
> processErrorMessages
> SEVERE: The following errors and warnings have been detected with
> resource and/or provider classes:
> SEVERE: Missing dependency for field: javax.servlet.ServletConfig
> com....Application.sc
>
> Any ideas what might be wrong or missing in my maven dependency
> configuration?
>
> Thanks a lot!
>
> Best, Timo