From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 27 18:50:02 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E812106566B for ; Wed, 27 Feb 2008 18:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3460F8FC12 for ; Wed, 27 Feb 2008 18:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1RIo2dP042760 for ; Wed, 27 Feb 2008 18:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1RIo1Gv042759; Wed, 27 Feb 2008 18:50:01 GMT (envelope-from gnats) Resent-Date: Wed, 27 Feb 2008 18:50:01 GMT Resent-Message-Id: <200802271850.m1RIo1Gv042759@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris St Denis Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40D65106566C for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/121149: www/tomcat* choaks on ip6 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2008 18:50:02 -0000 >Number: 121149 >Category: ports >Synopsis: www/tomcat* choaks on ip6 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 27 18:50:01 UTC 2008 >Closed-Date: >Last-Modified: >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: >Unformatted: