When I deploy the reference-1.war file on my local environment (Mac OSX), the urls of the RESTful services work just fine. When I deploy the same reference-1.war on the Bitnami tomcat on EC2, I get an extra slash and the error I get is:
Apr 17, 2013 9:45:47 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor processRequest WARNING: No root resource matching request path //reference-1/web/service/api/getrecords has been found, Relative Path: //reference-1/web/service/api/getrecords
The tomcat versions locally and on the bitnami stack are the same. Is there some bitnami specific configuration that I need to edit to avoid the double slash?
Update: I saw the localhost access files and the double slash is present for all resources. So it appears that it is not specific to my webapp deployment alone. Notice that calls to //reference-1 get 200 when it is a html page and 404 when it is to the RESTful service. All the other 200s are also to html or image or css resources.
<ip address=""> - - [18/Apr/2013:08:13:14 +0000] "GET // HTTP/1.1" 200 3727 <ip address=""> - - [18/Apr/2013:08:13:14 +0000] "GET //img/tomcatstack.png HTTP/1.1" 200 8214 <ip address=""> - - [18/Apr/2013:08:13:14 +0000] "GET //bitnami.css HTTP/1.1" 200 5008 <ip address=""> - - [18/Apr/2013:08:13:14 +0000] "GET //img/get-started-ami_landing.png HTTP/1.1" 200 19668 <ip address=""> - - [18/Apr/2013:08:13:14 +0000] "GET //img/plain-background.png HTTP/1.1" 200 17544 <ip address=""> - - [18/Apr/2013:08:13:14 +0000] "GET //img/launch-button-big-green.gif HTTP/1.1" 200 4786 <ip address=""> - - [18/Apr/2013:08:13:14 +0000] "GET //img/launch-button-big.gif HTTP/1.1" 200 1836 <ip address=""> - - [18/Apr/2013:08:13:14 +0000] "GET //img/bitnami-ami-landing-info-quad-bottom-yellow-spaced.png HTTP/1.1" 200 3189 <ip address=""> - - [18/Apr/2013:08:13:14 +0000] "GET //img/bitnami-ami-landing-info-quad-top-yellow-spaced.png HTTP/1.1" 200 3167 <ip address=""> - - [18/Apr/2013:08:35:12 +0000] "GET //reference-1/scripts/api-caller.html HTTP/1.1" 200 5291 <ip address=""> - - [18/Apr/2013:08:39:27 +0000] "GET //reference-1/web/service/api/getrecords HTTP/1.1" 404 - <ip address=""> - - [18/Apr/2013:08:47:37 +0000] "GET //reference-1/scripts/api-caller.html HTTP/1.1" 200 5291 <ip address=""> - manager [18/Apr/2013:08:49:11 +0000] "POST //manager/html/stop?path=/reference%2D1&org.apache.catalina.filters.CSRF_NONCE=347A8A1F50C3621251337A066137FE12 HTTP/1.1" 403 3196 <ip address=""> - - [18/Apr/2013:08:49:20 +0000] "GET // HTTP/1.1" 200 3727 <ip address=""> - - [18/Apr/2013:08:49:21 +0000] "GET //bitnami.css HTTP/1.1" 200 5008 <ip address=""> - - [18/Apr/2013:08:49:21 +0000] "GET //img/get-started-ami_landing.png HTTP/1.1" 200 19668 <ip address=""> - - [18/Apr/2013:08:49:21 +0000] "GET //img/tomcatstack.png HTTP/1.1" 200 8214 <ip address=""> - - [18/Apr/2013:08:49:22 +0000] "GET //index.jsp HTTP/1.1" 200 11223 <ip address=""> - manager [18/Apr/2013:08:49:24 +0000] "GET //manager/html HTTP/1.1" 200 17544 <ip address=""> - manager [18/Apr/2013:08:49:28 +0000] "POST //manager/html/stop?path=/reference%2D1&org.apache.catalina.filters.CSRF_NONCE=B1B288E64F6DE820DAD4BED56AD09627 HTTP/1.1" 200 17041 <ip address=""> - manager [18/Apr/2013:08:50:19 +0000] "POST //manager/html/start?path=/reference%2D1&org.apache.catalina.filters.CSRF_NONCE=17D5BCA90BB02518E4367D8CCC182716 HTTP/1.1" 200 17596 <ip address=""> - - [18/Apr/2013:08:51:26 +0000] "GET //reference-1/web/service/api/getrecords HTTP/1.1" 404 - <ip address=""> - - [18/Apr/2013:09:06:46 +0000] "GET //reference-1/web/service/api/getrecords HTTP/1.1" 404 - <ip address=""> - - [18/Apr/2013:09:07:46 +0000] "GET //reference-1/web/service/api/getrecords HTTP/1.1" 404 - <ip address=""> - - [18/Apr/2013:09:13:52 +0000] "GET //reference-1/web/service/api/getrecords HTTP/1.1" 404 -