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