users@jersey.java.net

Problem with ServletContainer - Jersey

From: Guilherme Melo e Maranhão <guilherme82_at_gmail.com>
Date: Wed, 18 Mar 2009 12:17:48 -0300

Hi,

I'm very new to Rest/Jersey and had some problems deploying my app in
Tomcat. I set my jersey servlet in web.xml like this:
<servlet-class>
            com.sun.jersey.spi.container.servlet.ServletContainer
        </servlet-class>

but the container does not find the resource when it is acessed. I've put in
WEB-INF/lib the jersey-bundle-1.0.2.jar, wich has the servletContainer.

Do u know what's wrong? Is there anything else i must set to run correctly?

I've read an article that suggest to include two init-param to the
ServletContainer, wich are
- com.sun.ws.rest.config.feature.Redirect
- com.sun.ws.rest.config.feature.ImplicitViewables

but they aren't in jersey-bundle-1.0.2.jar !!

Do they must be declared?

Thanks a lot, Guilherme