ports/121149: www/tomcat* choaks on ip6

Chris St Denis chris at smartt.com
Wed Feb 27 18:50:02 UTC 2008


>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 at 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:



More information about the freebsd-ports-bugs mailing list