You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sebastiaan van Erk <se...@sebster.com> on 2008/04/02 21:21:49 UTC
getRemotePort() returns -1 sometimes
Hi,
I have a tomcat servlet set up in Tomcat 6.0.16 behind Apache 2.2.4 with
mod_proxy and a ProxyPass with ajp:// to a servlet. Now it sometimes
happens to me that a call of request.getRemotePort() in the doPost()
method of the servlet returns -1. When this happens it keeps happening
until I restart tomcat, after which getRemotePort() seems to work again.
Does anybody know what can cause this?
Regards,
Sebastiaan