You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Liebling, Aaron" <A....@cpu-ag.com> on 2000/11/03 14:29:57 UTC

Problem with tomcat under apache

I've installed tomcat as the jsp/servlet server under apache and it's
generally running quite nicely.  I'd prefer to be using resin, but clients
get what they want. :-)

The problem I've encountered is with Url-rewriting using
Response.encodeURL().  In short, it doesn't work.  I've compiled my own
version of the server with some debugging code in it and it turns out that
HttpServletResponse.isEncodable(String url) is always returning false
because getRequest().getServerPort() == -1 (while it should == the port of
the current context (80)).  When running tomcat standalone, this port is
correctly reported as 8080.

Is this a known bug with tomcat or (much more likely) an error in my setup?


Any ideas?

Thanks!

Aaron Liebling