Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

request.getServerPort() returns wrong port when using tcpmon

Alessandro Vernet

2007-01-31

Replies:


When the request I send to Tomcat go through tcpmon, calls to
httpServletRequest.getServerPort() in my code always return 80. This is
incorrect, as Tomcat is listening in fact to port 8080. I don't have this
problem when request don't do through tcpmon.

I am having this issue with Tomcat 5.5.16, and haven't tried yet with other
versions.

Any suggestion?

Alex
--
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.