Hi Charles,
I tried it with Tomcat, and it seems to work for me.
This is what I get on "curl" for the bookstore sample:
-----------------------------------------------------------------------------------
curl -v
http://localhost:8080/bookstore
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /bookstore HTTP/1.1
> User-Agent: curl/7.19.0 (i686-suse-linux-gnu) libcurl/7.19.0
OpenSSL/0.9.8h zlib/1.2.3 libidn/1.10
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Server: Apache-Coyote/1.1
< Location:
http://localhost:8080/bookstore/
< Transfer-Encoding: chunked
< Date: Thu, 21 May 2009 11:55:07 GMT
<
* Connection #0 to host localhost left intact
* Closing connection #0
-----------------------------------------------------------------------------------
-Naresh
Charles Brooking wrote:
>> On May 21, 2009, at 3:11 AM, Charles Brooking wrote:
>>
>>> Is there a way to respond to the "root" address without a trailing
>>> slash?
>>>
>> No, it is one of those boundary cases with Servlet.
>>
>> What servlet container are you using?
>>
>> GF will redirect from http://localhost/app to http://localhost/app/
>>
>
> I'm using Tomcat, which does redirect from /contextPath to /contextPath/.
>
> However, where the Jersey servlet is concerned /contextPath/servletPath
> simply returns a 404.
>
> Later
> Charlie
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>