dev@glassfish.java.net

Possible bug in servlet

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 05 Jun 2008 10:34:30 +0200

Hi,

I am using GFv2 UR2 with Jersey. If say my web.xml is:

<web-app>
     <servlet>
         <servlet-name>Jersey Web Application</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>Jersey Web Application</servlet-name>
         <url-pattern>/*</url-pattern>
     </servlet-mapping>
</web-app>

and i deploy the application using the context "HelloWorldWebApp" and i
access the service with this URL:

   http://localhost:8080/HelloWorldWebApp

then Jersey gets invoked.

The "request.getPathInfo()" is returning "/", which seems incorrect to me.

In fact i don't think the servlet with the URL pattern "/*" should get
invoked at all for such a request URL does, since that URL does not
match the pattern.

Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109