users@jersey.java.net

[Jersey] Re: Was: " _at_ApplicationPath not working"

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Mon, 17 Jan 2011 11:59:30 +0100

On Jan 14, 2011, at 6:21 PM, Markus Karg wrote:

> BTW,
>
>> <servlet>
>> <servlet-name>foo.ApplicationConfig</servlet-name>
>> <load-on-startup>1</load-on-startup>
>> </servlet>
>
> is that really supported in Jersey? The WIKI
> (http://wikis.sun.com/display/Jersey/Overview+of+JAX-RS
> +1.0+Features) says
> no: "...but as of writing this is not currently supported for Jersey.
> Instead it is necessary to declare the Jersey specific servlet and the
> Application class as follows... (web.xml sample)". I assume that the
> wiki is
> outdated as it is from 1.0, but it would be great if the wiki would be
> adjusted to 1.4 possibilities (like not providing a web.xml at
> all)... :-)
>

It is a JAX-RS 1.1 feature.

Paul.