From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 18 Mar 2009 16:29:40 +0100
Hi Guilherme,
On Mar 18, 2009, at 4:17 PM, Guilherme Melo e Maranhão wrote:
> 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>
>
Can you send your:
- complete web.xml;
- tomcat log; and
- your resource class.
> but the container does not find the resource when it is acessed.
Are there any errors in the tomcat log? what URIs are you using to
access the resources.
> I've put in WEB-INF/lib the jersey-bundle-1.0.2.jar, wich has the
> servletContainer.
>
What are other jars files are in the WEB-INF/lib ?
> 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 !!
>