...
In particular, I had difficulties with cookies because the servlet container would write them using the "real" context path and not the one I was trying to emulate. If I understood mod_rewrit rewrite better, I'm sure it would have worked, but somebody using this approach will need to document it.