Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 52FA99FB0 for ; Wed, 19 Oct 2011 08:49:24 +0000 (UTC) Received: (qmail 23613 invoked by uid 500); 19 Oct 2011 08:49:21 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 22999 invoked by uid 500); 19 Oct 2011 08:49:20 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 22985 invoked by uid 99); 19 Oct 2011 08:49:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2011 08:49:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2011 08:49:11 +0000 Received: from [192.168.245.129] (p549E9227.dip0.t-ipconnect.de [84.158.146.39]) by tor.combios.es (Postfix) with ESMTPA id DBD93DA02B0 for ; Wed, 19 Oct 2011 10:48:49 +0200 (CEST) Message-ID: <4E9E8ECF.9000305@ice-sa.com> Date: Wed, 19 Oct 2011 10:48:15 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: AJP Errors. Apache + Tomcat References: <20111019081437.M22118@gniffelnieuws.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi. The problem can also be due just to the difference in startup time between Apache httpd and Tomcat. At the time Apache httpd (and its embedded mod_proxy_ajp module) try to contact Tomcat, Tomcat has possibly not yet "opened" its Connector on port 8009, which causes the host to refuse a connection to that port. In my experience anything involving Java tends to take a while to "start the machinery" (it is after all a "java virtual machine"). In the practice thus, what we always do in such configurations, is to start Tomcat first (which really means mostly "start the java virtual machine which runs Tomcat") , wait a couple of seconds, and then start the Apache httpd part. Joe Hansen wrote: > I uninstalled Tomcat and installed a newer version (6.0.33) and the problem > disappeared. It is strange because the config files are the same. > > On Wed, Oct 19, 2011 at 2:16 AM, wrote: > >> Hi >>> I get the following AJP errors when I try to access a webpage after >> ztarting >>> Apache and Tomcat. Both Apache web server and Tomcat start up fine >>> but I get these errors in Apache logs and I get a 503 Service >>> Temporarily Unavailable message in the browser. Apparently Tomcat >>> isn't seeing the request. >>> >>> [error] (OS 10061) No connection could be made because the target machine >>> actively refused it. : proxy: AJP: attempt to connect to >>> 127.0.0.1:8009(localhost) failed >>> [error] ap_proxy_connect_backend disabling worker for (localhost) >>> [error] proxy: AJP: failed to make connection to backend: localhost >>> >>> Can you please help me find out where the problem lies. >>> >> Have you checked the port is listening? (netstat -an) and the firewall >> permits the connection (telnet localhost 8009) >> >> John >> >> -- >> /(bb|[^b]{2})/ >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org