geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Forrest_Xia <forres...@gmail.com>
Subject Re: Does geronimo support IPv6?
Date Fri, 15 May 2009 04:00:30 GMT

Tried on a IPv6 configured linux box, and got these findings, post here
first, later I will open JIRAs:
1. Geronimo does not support IPv6 style IP addresses in its configuration
files, for example, config-substitutions.propertes.
"Does not support" means any IPv6 addresses could not be used in the config
files, otherwise, the server won't start successfully. For example, ::
(equals 0.0.0.0 of IPv4), ::1 (equals 127.0.0.1 of IPv4),
2002:97d:eec3:629:9:123:124:111, etc.

2. Tomcat Little-G has alternative way to open sockets listening on IPv6
address, but full version of geronimo does not work in the same way.
The alternative way is using "ServerHostname=hostname" in
config-substitutions.properties, which hostname is mapped to IPv6 address in
/etc/hosts, for example, ::1, then tomcat little-g start successfully and
listen on ipv6address:port, for example,
tcp        0      0 ::1:8009                :::*                    LISTEN     
off (0.00/0/0)
tcp        0      0 ::1:1099                :::*                    LISTEN     
off (0.00/0/0)
tcp        0      0 ::1:9999                :::*                    LISTEN     
off (0.00/0/0)
tcp        0      0 ::1:8080                :::*                    LISTEN     
off (0.00/0/0)

But the the same way does not work with full version of geronimo, and failed
at some modules, for example,
org.apache.geronimo.configs/j2ee-corba-yoko/2.1.3/car

The exception is like this:
org.apache.activemq.util.IdGenerator <clinit>
WARNING: could not generate unique stub
Throwable occurred: java.net.UnknownHostException: sles10sp24xm:
sles10sp24xm

After these tries and some IPv6 study, a rough idea is that using hostname
instead of IP address in codes might be a way to enable geronimo working in
an IPv6 network environment.

Also I found whether setting JAVA_OPTS as below has no impact to tomcat
little-g listening on IPv6 address via hostname mapping. 
JAVA_OPTS="-Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Stack=true
-Djava.net.preferIPv6Addresses=true"

I will try to look into this further to make it more clear for us, welcome
any comments, thanks!

Forrest

-- 
View this message in context: http://www.nabble.com/Does-geronimo-support-IPv6--tp22801389s134p23553018.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message