From nobody@FreeBSD.org  Wed Feb 27 18:47:40 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 40D65106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Feb 2008 18:47:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 38F728FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Feb 2008 18:47:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1RIiqCP043762
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Feb 2008 18:44:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m1RIiqia043760;
	Wed, 27 Feb 2008 18:44:52 GMT
	(envelope-from nobody)
Message-Id: <200802271844.m1RIiqia043760@www.freebsd.org>
Date: Wed, 27 Feb 2008 18:44:52 GMT
From: Chris St Denis <chris@smartt.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: www/tomcat* choaks on ip6
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: tomasv@megalogika.lt

>Number:         121149
>Category:       ports
>Synopsis:       www/tomcat55 - www/tomcat* choaks on ip6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 27 18:50:01 UTC 2008
>Closed-Date:    Wed Jul 09 08:27:57 UTC 2008
>Last-Modified:  Wed Jul 09 08:27:57 UTC 2008
>Originator:     Chris St Denis
>Release:        FreeBSD 7
>Organization:
SmarttNet
>Environment:
FreeBSD carbon.smartt.com 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Mon Feb 25 11:51:25 PST 2008     cstdenis@carbon.smartt.com:/usr/obj/usr/src/sys/CARBON  i386
>Description:
Starting Tomcat causes "java.net.BindException: Can't assign requested address" errors. After spending several hours searching I found that it seems to have problems with IP6 and needs to be forced to IP4.

The other person with the problem was running tomcat 5.5 under RELENG_6 and I am using tomcat 4.1 under RELENG_7_0 so this probably affects all Tomcat on FreeBSD >= 6.

IMO the solution of jakarta_tomcat55_java_opts="-Djava.net.preferIPv4Stack=true" should be default, or at least mentioned in the pkg_message. Or perhaps a ports fix of some sort be applies a the java port level.

Mailing list reference with the solution: 
http://lists.freebsd.org/mailman/htdig/freebsd-java/2005-November/004623.html
>How-To-Repeat:

>Fix:
jakarta_tomcat55_java_opts="-Djava.net.preferIPv4Stack=true" in rc.conf

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Wed Feb 27 21:41:25 UTC 2008 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121149 
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Wed Jul 9 08:27:56 UTC 2008 
State-Changed-Why:  
Already fixed long time ago. Thanks for your submission. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121149 
>Unformatted:
