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 67D4F11498 for ; Thu, 3 Apr 2014 21:36:13 +0000 (UTC) Received: (qmail 34659 invoked by uid 500); 3 Apr 2014 21:36:06 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 34595 invoked by uid 500); 3 Apr 2014 21:36:04 -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 34320 invoked by uid 99); 3 Apr 2014 21:36:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2014 21:36:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [76.96.62.56] (HELO qmta06.westchester.pa.mail.comcast.net) (76.96.62.56) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2014 21:35:57 +0000 Received: from omta08.westchester.pa.mail.comcast.net ([76.96.62.12]) by qmta06.westchester.pa.mail.comcast.net with comcast id lYVW1n0020Fqzac56Zbabx; Thu, 03 Apr 2014 21:35:34 +0000 Received: from Christophers-MacBook-Pro.local ([68.55.8.89]) by omta08.westchester.pa.mail.comcast.net with comcast id lZba1n00M1vFKdg3UZbasa; Thu, 03 Apr 2014 21:35:34 +0000 Message-ID: <533DD41E.5020504@christopherschultz.net> Date: Thu, 03 Apr 2014 17:35:26 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: AW: AW: tomcat-connectors-1.2.39-windows-x86_64-iis does not work References: <533C2161.9050900@ice-sa.com> <533D63B2.6020100@ice-sa.com> <533DB7AA.5050600@ice-sa.com> In-Reply-To: <533DB7AA.5050600@ice-sa.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1396560934; bh=g9AlmwiLtWJMIbnQBcms166bZP6dU6NHN3d8LDoe4ds=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=dPqwKw9HcYHlezBQFtlqCvsu0nDKTzAW1HmAMiWxYIKy70HDy/1ZxgpfhqMkDBffY 6esU1+l/AbCHxxxQdpaDizjEE1li0w+Dv6hNg9GQegMs324BRWp+oQSsCAwZ4Sv4wa hVr53/QEuyOOQJD7hFDWHHRgNqqQ+khZuaRysUrHWcWxRsB9OOocYt1yGwez+Jchri zOo36he4HEyHH5SlB/TleVFB6AqnbEDjaV9iADlQk9HaJDPE4MmQYuCsUFA3xG5so0 nl2SnP3SABBqFlRzKco8dsWmN8Uijc8s69N/1BR3UheT4SvkEvksDFG0E64iav3xvr 7/Yry1Hpznq+A== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 André, On 4/3/14, 3:34 PM, André Warnier wrote: > Alten, Jessica-Aileen wrote: >>> -----Ursprüngliche Nachricht----- Von: André Warnier >>> [mailto:aw@ice-sa.com] Gesendet: Donnerstag, 3. April 2014 >>> 15:36 An: Tomcat Users List Betreff: Re: AW: >>> tomcat-connectors-1.2.39-windows-x86_64-iis does not work >>> >>> Alten, Jessica-Aileen wrote: >>>>> A bit guessing here : >>>>> >>>>> You have : >>>>>> worker.ajp13w.host=localhost >>>>> >>>>> and >>>>> >>>>>> jk_open_socket::jk_connect.c (735): connect to >>>>>> 0.0.0.0:8009 >>> failed >>>>>> (errno=49) >>>>> is "localhost" == 0.0.0.0 ? >>>>> >>>>> From the point of view of mod_jk/isapi, should it not be >>> "127.0.0.1" ? >>>> Your answer points to the right direction. 0.0.0.0 means: any >>>> configured IPv4-Address on this computer, see >>>> >>>> http://serverfault.com/questions/78048/whats-the-difference-between- >>> >>>> ip >>>> -addre ss-0-0-0-0-and-127-0-0-1 >>>> >>>> In principle this is ok at first. The Ajp13 Connector was >>>> configured in server.xml to listen at any IPv4 address on >>>> port 8009 - which is the default setting. But the connector >>>> can't find any suitable >>> address. >>>> The problem is: The new Tomcat-Connector can't parse >>>> "worker.ajp13w.host=localhost", instead localhost must be >>>> replaced with "127.0.0.1", this works! >>>> >>>> In my eyes this is a big fat bug, because most documentation >>>> on workers use "localhost". localhost is actually the default >>>> for the "host" connection directive. >>>> >>>> The new worker directive "prefer_ipv6" doesn't change this >>>> behavior. >>>> >>> Hi. >>> >>> Can you please really check this ? >>> >>> Open a command window on that server, and do "ping localhost". >>> It should tell you what it understands by "localhost". Copy and >>> paste the result here : >> >> ping localhost >> >> Ping wird ausgeführt für xyz.uv.local [127.0.0.1] mit 32 Bytes >> Daten: Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128 Antwort >> von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128 Antwort von 127.0.0.1: >> Bytes=32 Zeit<1ms TTL=128 Antwort von 127.0.0.1: Bytes=32 >> Zeit<1ms TTL=128 >> >> Ping-Statistik für 127.0.0.1: Pakete: Gesendet = 4, Empfangen = >> 4, Verloren = 0 (0% Verlust), Ca. Zeitangaben in Millisek.: >> Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms >> >> > That /is/ bizarre. As far as I know, to resolve hostnames in its > configuration, mod_jk/isapi is using the OS's resolver library, the > same as the one "ping" should be using. On the other hand, you say > that if you have > >>>>>> worker.ajp13w.host=localhost > > it doesn't work (mod_jk cannot connect to tomcat), but when you > change this to > >>>>>> worker.ajp13w.host=127.0.0.1 > > then it works fine. > > Ok, another check in a command window (and I assume that you open > this command window *on the server itself* where mod_jk and Tomcat > are running, right ?) > > test : > > 1) telnet localhost 8009 > > 2) telnet 127.0.0.1 8009 > > Any difference between these 2 cases ? > > If not, then indeed it looks like a mod_jk/isapi_redirect 1.2.39 > problem. > > In any case, you cannot "connect to" 0.0.0.0, as this log line > would suggest : > >>>>>> jk_open_socket::jk_connect.c (735): connect to >>>>>> 0.0.0.0:8009 >>> failed Could this be an interaction between IPv4 and IPv6? Try: C:> nslookup localhost You might get only 127.0.0.1 or you might also get :: (or something equivalent). I'm not sure why it wasn't happening with earlier versions of mod_jk (which?). - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTPdQeAAoJEBzwKT+lPKRY6i4P/jv+ozeg+saTWEDwWeR769JQ 1d3Y3n9Cnvk5qHlvEkTxOzu72MdUtl3+eLLgCT+7QNRQWr3m/Lj+vlN8E+M0d/6X BWs8/XDP3fMyc6eBgQiTQWTZUMH1sGua4ceJ24PLviK1Pq9jambFeHHvdYluDK4K ItgDyfXf9GkO5SsMvQxcic2VpjPxkPwM6W3ndjvDGYAucwK3ZW5FQTZ0GAsmvYac 6jGa7UJWCJA0VemInPIR0J5wlOpDq+GtjKTBaGltAbgVew7U91uuCyB9ll9Ybrug buETKMaB/o+P57e3atUoWRz5/pUAaZJDE75HDguKS+z2Io5SXR7zOynOhqso89em kTZ5UvpuO8ffeqqTn9WK7y8roGcYP+PBDdmBgbZF3RysFw+sLaWaRP08rPHMPe7X Yiw0pZbxSAEwlBcPiPrueqjHxiC1jtGFfpFqaywrNfAkDKSWl/ckzenAZzRlwimS G0cpbLxGPnvQaqf58jvkntd102tGSMgb7mhVTNDsCu0+IFRfuN+iFy76LpgMwcYc dZUL5r23gj5Vqe5f9k9GdI8sF6XLPf7juoUXJKRIer9wLhNvTeriv0jCnWhk7SqQ ysHmtssDzV6jAF9fsGGWrtYTD/LE9NY+WTSDAMv+hZTn/OQZRUPGZ4XS3UN1HE1P 1OWrGlm0IGcgZFzqPRTA =JW/W -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org