users@jersey.java.net

Tomcat & Index Pages

From: Cameron Jones <cmhjones_at_gmail.com>
Date: Tue, 28 Oct 2008 18:23:15 +1100

Hi all,

I've just encountered an issue when deploying to tomcat, it seems that
if you have an index.jsp page in the webapp tomcat bypasses jersey and
serves the page itself. i also tested in jetty which is ok and doesn't
have this issue.

on a side note, has anyone had any success with proxy-ing tomcat
through apache using ajp but on a different context path? i have an
app deployed in tomcat which has it's own domain and virtual host
configured in apache, what i would like is to be able to redirect all
requests throguh to tomcat but using the deployment path, eg:

http://appdomain.com/ => ajp://localhost:8009/app

i can see how this could complicate generated urls but it seems like a
fairly common requirement to have no support whatsoever. off-context
so sorry if this is noise.

thanks,
cam