tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hans Müller" <>
Subject Tomcat 5.5 and IPv6 configuration
Date Tue, 01 Aug 2006 11:49:54 GMT
Hello guys,

currently I'm trying to set-up a standalone Tomcat 5.5.17 server in an IPv6 environment on
a FreeBSD 6.1 machine. Unfortunately, Tomcat refuses to start. Here is the relevant content
of the catalina.out log-file:

SEVERE: StandardServer.await: create[8005]: Can't assign requested address
        at Method)
        at org.apache.catalina.core.StandardServer.await(
        at org.apache.catalina.startup.Catalina.await(
        at org.apache.catalina.startup.Catalina.start(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.catalina.startup.Bootstrap.start(
        at org.apache.catalina.startup.Bootstrap.main(

I googled for a solution to this problem, but the only one I found (several times) was to
disable the IPv6 support of the JVM by calling it with
Since I explicitely want to use IPv6 this is no solution for me.

Then I looked at the particular portion of the source code which causes the exception and
I found that the IPv4 address is actually hardcoded several times there (in, and some others). Of course, the JVM cannot create an IPv6 address using this
IPv4 representation. Therefore I changed "" to "localhost", recompiled Tomcat and
happily discovered that it is working now.

BUT... since I can read everywhere that Tomcat should be IPv6 compliant, this code-change
doesn't seem to be the real solution to me. Firtly I'm not the only one who is using IPv6
and secondly the developers are definitely not that stupid to hardcode an IPv4 address and
thereby break IPv6 compatibility. So, I'd like to ask you if there is a configuration-only
way to solve this issue, i.e. to avoid that StandardServer is being called?

I am using the server-minimal.xml file that is being shipped with Tomcat and an IPv6 capable
JVM 1.5.


Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit!
"Feel free" mit GMX DSL:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message