I've set up the test and will be looking into it now.
Can you give me a favor and try with Tomcat 5 ? And also without a custom path 
regex ?
I will be testing it all myself, but some independent tests can help. 
cheers, Sergey 

-----Original Message-----
From: Bob Allison [mailto:[email protected]]
Sent: Wed 1/6/2010 12:53 PM
To: [email protected]
Subject: Re: Path Oddity with UriInfo
 
I have been using v2.2.5, and I just verified that the development trunk does 
the same thing.

Thanks for your help.


Sergey Beryozkin wrote, On 1/6/10 12:14 PM:
> Not sure what is happening, I'll need to sign off shortly, but will look into 
> it tomorrow
> 
> cheers, Sergey
> 
> 
> -----Original Message-----
> From: Bob Allison [mailto:[email protected]]
> Sent: Wed 1/6/2010 11:59 AM
> To: [email protected]
> Subject: Path Oddity with UriInfo
>  
> I have a JAX-RS application that I am deploying in Tomcat 6 using the 
> CXFNonSpringJaxrsServlet servlet class.  The application deploys at context 
> "/app", the servlet is mapped to "/v1/*" and has a single resource mapped to 
> "/{path:.*}".  The resource gets a UriInfo object injected.
> 
> Right now, the resource simply displays UriInfo.getBaseUri and the path 
> parameter.  I am using a browser to access the resource.  When I deploy the 
> application, I access the following URIs (in order):
> 
> URI          | getBaseUri          | path param
> -------------+---------------------+-----------
> /app/v1      | http://host/        | "v1"
> /app/v1/     | http://host/        | "v1/"
> /app/v1/test | http://host/app/v1/ | "test"
> /app/v1/     | http://host/app/v1/ | ""
> /app/v1      | http://host/app/v1/ | "app/v1"
> 
> Am I doing something wrong?
> 
> 

Reply via email to