users@jersey.java.net

Jersey servlet configuration issue

From: Dmitry Shaparev <dmitry.shaparev_at_gmail.com>
Date: Tue, 3 Mar 2009 09:29:18 +0600

Hi,


web.xml content looks as folows:

<servlet>

    <servlet-name>JerseyServlet</servlet-name>

    <servlet-class>

        com.sun.jersey.spi.container.servlet.ServletContainer

    </servlet-class>

    <load-on-startup>1</load-on-startup>

</servlet>



<servlet-mapping>

    <servlet-name>JerseyServlet</servlet-name>

    <url-pattern>/*</url-pattern>

</servlet-mapping>



Jersey resource is not defined for HTTP request GET /readme.html, but
readme.html is present in the context root of web application. Now Jersey
states that readme.html is not found.



Could Jersey servlet be configured (or it has an init parameter) to forward
requests for resources that are not defined in Jersey to the underlying
servlet container?

Thanks.