hi!
(i'm not subscribed to this list so please direct any questions to my
home email address)
stopping catalina requires a name lookup since it request localhost by
name.
(i'm pretty that this why i couldn't stop tomcat after my domain name
server became stuffed - which is, of course, a very good reason why one
would wish to shutdown tomcat ;-)
this patch replaces "localhost" name with the IP address ("127.0.0.1")
in the stop method of org.apache.catalina.startup.Catalina. it's a one
line change (in fact, one word) but i haven't set up CVS on the patch
machine and got the latest version from CVS so i hope it's ok. also
hopefully the attached patch will come through ok without becoming
garbled.
- robert
--- Catalina.java.old Sun Jan 28 13:59:22 2001
+++ Catalina.java Sun Jan 28 09:00:25 2001
@@ -701,7 +701,7 @@
// Stop the existing server
try {
- Socket socket = new Socket("localhost", server.getPort());
+ Socket socket = new Socket("127.0.0.1", server.getPort());
OutputStream stream = socket.getOutputStream();
String shutdown = server.getShutdown();
for (int i = 0; i < shutdown.length(); i++)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]