You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Forrest_Xia <fo...@gmail.com> on 2009/05/15 06:00:30 UTC
Re: Does geronimo support IPv6?
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.
Re: Does geronimo support IPv6?
Posted by Forrest_Xia <fo...@gmail.com>.
For the (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. "
After another try, I should update it as below:
2. Full version of geronimo starts successfully when using hostnames mapped
to IPv6 addresses.
For example, in your localhost file, there are entries like:
::1 sles10sp24xm localhost ipv6-localhost ipv6-loopback
:: fromallhost
"sles10sp24xm" is the hostname, and must appears in the hosts file.
Then update the config-substitutions.properties like:
ServerHostname=fromallhost
Then the geronimo server starts successfully, and listen on these ports:
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 :::6882 :::* LISTEN
tcp 0 0 :::4201 :::* LISTEN
tcp 0 0 :::8009 :::* LISTEN
tcp 0 0 :::1099 :::* LISTEN
tcp 0 0 :::61613 :::* LISTEN
tcp 0 0 :::9999 :::* LISTEN
tcp 0 0 :::61616 :::* LISTEN
tcp 0 0 :::8080 :::* LISTEN
tcp 0 0 :::2001 :::* LISTEN
tcp 0 0 :::1527 :::* LISTEN
tcp 0 0 :::1050 :::* LISTEN
tcp 0 0 :::8443 :::* LISTEN
--
View this message in context: http://www.nabble.com/Does-geronimo-support-IPv6--tp22801389s134p23554866.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.