users@jersey.java.net

Re: [Jersey] Jersey + WEBDav problem on Tomcat 6

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 05 Feb 2009 13:34:54 +0100

On Feb 5, 2009, at 12:13 PM, Christopher Schmidt wrote:

> We are using Grizzly like this:
>
> GrizzlyServerFactory.create("http://localhost:80/",
> RuntimeDelegate.getInstance().createEndpoint(new
> WebDAVApplication(), Adapter.class));
>

OK. We need to ascertain if the Jersey servlet is at fault or not (i
suspect not but still...). You can use the Grizzly Web container
support as follows:

         Map<String, String> initParams = new HashMap<String, String>();
         initParams.put("javax.ws.rs.Application",
                 WebDAVApplication.class.getName());
        GrizzlyWebContainerFactory.create("http://localhost:80/",
params);

The Grizzly Web container will use the Jersey ServletContainer.


> Yes, @GET works fine.
>

OK.


> Maybe Tomcat is blocking the PROPFIND method, this would be a
> configuration issue.

If you add the logging filter as i suggested you can ascertain if the
PROPFIND request is hitting the Jersey ServletContainer or not.


> Do I have to do anything special with the Tomcat config?
>

I do not know.

Paul.