Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 15851 invoked from network); 19 Jul 2003 03:49:56 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 19 Jul 2003 03:49:56 -0000 Received: (qmail 15853 invoked by uid 97); 19 Jul 2003 03:52:36 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 15846 invoked from network); 19 Jul 2003 03:52:36 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 19 Jul 2003 03:52:36 -0000 Received: (qmail 14445 invoked by uid 500); 19 Jul 2003 03:49:44 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 14427 invoked from network); 19 Jul 2003 03:49:43 -0000 Received: from 213-152-36-122.dsl.eclipse.net.uk (HELO localhost.localdomain) (213.152.36.122) by daedalus.apache.org with SMTP; 19 Jul 2003 03:49:43 -0000 Received: from HAL ([192.168.0.13]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h6J3ns0Q002470 for ; Sat, 19 Jul 2003 04:49:54 +0100 From: "Daniel Farinha" To: Subject: Tomcat doesn't shutdown: java.net.ConnectException: Connection refused Date: Sat, 19 Jul 2003 04:49:46 +0100 Message-ID: <003b01c34da8$cc204fe0$0d00a8c0@HAL> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N It took way too long to find a solution. Others in this list have = described this problem, so hopefully this might solve it for them too. The problem: Tomcat starts and runs fine. It listens on 8080 as usual, = and does its stuff. But when you try shutting down, you get the following error: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at = java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:434) at java.net.Socket.connect(Socket.java:384) at java.net.Socket.(Socket.java:291) at java.net.Socket.(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at = org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at = org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.jav a:25) at java.lang.reflect.Method.invoke(Method.java:324) at = org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) ---------------------------------------- It's identical to the error you get when you try shutting down when it's = not running. But in my case (and some others in this list) it _was_ running. Well, in my case the problem was iptables. My firewall settings were = very restrictive, and port 8005 was being blocked, which tomcat uses for = shutdown. I opened port 8005 on the firewall and all worked fine. Hope this saves someone from all the trouble that I went through... It = took me hours, several jdk and tomcat re-installations and a visit to IRC = #tomcat to find that one out. Regards Daniel Farinha --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org