I don't think you can do that. After Tomcat accepts the HTTP connection and decides whether to respond, it's too late to pretend there's no server there. The user's web browser displays a different error message for no server (something like "can't establish a connection") vs. server timeout (something like "the server took too long to respond") or dropping the connection ("the connection was reset").
So you might as well just customize the 404 error page to say "There's no server here" - it'd fool people just as well. :-) Or just return an empty error page. -- Len On Mon, Mar 15, 2010 at 19:26, Song Thuy Nguyen <programm...@biaqua.de> wrote: > Hello, > > > > usually you will get a "The requested resource /XYZ is not available" > response when you call an > unavailable web service on Apache Tomcat. However, for a special use case I > don't want Tomcat to > answer to  requests for a unknown/unavailable web service. I just want Tomcat > to ignore it and "keep > quiet", resulting that the caller will get a timeout and therefore knows that > there is no service behind > this URL. How can I achieve such behaviour? > > > > Best Regards, > > > > > > Song Thuy Nguyen > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org