jon 01/01/28 17:02:53
Modified: catalina/src/share/org/apache/catalina/startup Catalina.java
Log:
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
Robert Burrell Donkin <[EMAIL PROTECTED]>
Revision Changes Path
1.14 +5 -5
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/Catalina.java
Index: Catalina.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/Catalina.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Catalina.java 2001/01/23 22:01:16 1.13
+++ Catalina.java 2001/01/29 01:02:52 1.14
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/Catalina.java,v
1.13 2001/01/23 22:01:16 glenn Exp $
- * $Revision: 1.13 $
- * $Date: 2001/01/23 22:01:16 $
+ * $Header:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/Catalina.java,v
1.14 2001/01/29 01:02:52 jon Exp $
+ * $Revision: 1.14 $
+ * $Date: 2001/01/29 01:02:52 $
*
* ====================================================================
*
@@ -97,7 +97,7 @@
* </u>
*
* @author Craig R. McClanahan
- * @version $Revision: 1.13 $ $Date: 2001/01/23 22:01:16 $
+ * @version $Revision: 1.14 $ $Date: 2001/01/29 01:02:52 $
*/
public class Catalina {
@@ -715,7 +715,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]