Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1100602

Summary: mod_jk 1.2.40 IPv6 support does not work on Windows
Product: [JBoss] JBoss Enterprise Web Server 2 Reporter: Libor Fuka <lfuka>
Component: mod_jkAssignee: Mladen Turk <mturk>
Status: CLOSED EOL QA Contact: Libor Fuka <lfuka>
Severity: high Docs Contact:
Priority: high    
Version: 2.1.0CC: dmasirka, jclere, jdoyle, jstefl, myarboro, pslavice, rsvoboda, weli
Target Milestone: ER03   
Target Release: 2.1.0   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, mod_jk 1.2.40 IPv6 support did not work on Microsoft Windows as APR resolves addresses on Microsoft Windows differently. This issue is fixed in JBoss Enterprise Server 2.1. The mod_jk 1.2.40 IPv6 support now works with Microsoft Windows.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-13 08:03:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
mod_jk.log
none
httpd error log none

Description Libor Fuka 2014-05-23 08:15:34 UTC
Created attachment 898575 [details]
mod_jk.log

Description of problem:
mod_jk 1.2.40 IPv6 support does not work on Windows. mod_jk IPv6 support on RHEL and Solaris work well.

see attched mod_jk.log and httpd error.log

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Libor Fuka 2014-05-23 08:16:02 UTC
Created attachment 898577 [details]
httpd error log

Comment 2 Mladen Turk 2014-05-26 07:31:07 UTC
It works if you add prefer_ipv6=1 to worker, eg. worker.nodeX.prefer_ipv6=1
Seems this has to do with how APR resolves addresses on Windows.
Please create upstream bug report for mod_jk and link it here. I'll try to create some patch that would bypass those APR differences.

Comment 3 Libor Fuka 2014-05-26 08:58:58 UTC
It works well after setting properties worker.nodeX.prefer_ipv6=1 on Windows.
Two possible solutions:
1. Fix upstream - mod_jk behaviour should be the same on all platforms (without set worker.nodeX.prefer_ipv6=1)
2. Document this mod_jk property in EWS 2.1.0 documentation

Comment 4 Libor Fuka 2014-05-26 10:05:35 UTC
Mladen will fix it upstream - confirmed in discussion.
Created upstream bugzilla https://issues.apache.org/bugzilla/show_bug.cgi?id=56565

Comment 5 Mladen Turk 2014-06-02 06:51:51 UTC
Fixed upstream. I'll apply a patch to our mod_jk.

Comment 6 Libor Fuka 2014-06-11 12:40:06 UTC
*** Bug 901010 has been marked as a duplicate of this bug. ***

Comment 7 Mladen Turk 2014-06-11 13:29:51 UTC
This is fixed with ER2. Please verify.

Comment 8 Libor Fuka 2014-06-12 07:22:57 UTC
Its still the same in ER2 on windows.
I see the same errors in mod_jk.log:
[Thu Jun 12 00:21:33 2014][5936:5408] [error] ajp_validate::jk_ajp_common.c (2748): worker worker1 can't resolve tomcat address ::1
[Thu Jun 12 00:21:36 2014][5936:5408] [error] ajp_validate::jk_ajp_common.c (2748): worker worker2 can't resolve tomcat address ::1

Comment 9 Mladen Turk 2014-06-12 09:41:42 UTC
Yeah, sorry, my bad.
Seems the patch was not applied to ER2 after all.

Comment 10 Mladen Turk 2014-06-12 11:44:01 UTC
Rebuild with correct patch
http://download.devel.redhat.com/brewroot/packages/mod_jk/1.2.40/3.win6/win/

You can just replace mod_jk.so from those .zip files. It'll be part of ER3, but if you can check it would give some time to fix it.

Comment 11 Libor Fuka 2014-06-13 07:02:49 UTC
I retest i686 build from comm#10 on Win2008 32-bit and it works!

Comment 12 Libor Fuka 2014-06-24 08:39:01 UTC
Verified with EWS 2.1.0-ER3 on MS Windows 2008 (i686, x86_64), 2008R2, 2012

Comment 13 Mandar Joshi 2014-08-11 13:58:11 UTC
added doc text.