Anytime we construct a ServerSocket in Tomcat, we shouldn't allow the value "0" to be passed to the ServerSocket constructor, as that will bind down to a random port number... (and we don't want to open random ports on the server, don't we?)
For TC40, I believe the fix is pretty easy, in ServerSocketFactory... I don't know if TC3x is affected... Thanks to Tal for noticing... Pier