dev@glassfish.java.net

virtual-server hosts="${com.sun.aas.hostName}" vs "localhost"

From: Amy Roh <Amelia.Roh_at_Sun.COM>
Date: Thu, 18 Jun 2009 15:59:17 -0700

When a new virtual server is created via
"asadmin create-virtual-server --hosts=localhost TestServer",
the following is added to domain.xml

<virtual-server id="TestServer" hosts="localhost" ...>

The virtual server is not working as expected for default-web-module
(internal server error 500), unless I change hosts to the default value.

<virtual-server hosts="${com.sun.aas.hostName}">

or remove hosts all together, therefore using the default value.

I am aware of the previous localhost issue with v2 on windows [1] but
I'm on mac and able to ping localhost.

bash-3.2$ ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.042 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.042 ms

A regression issue [2] has been reported also. Any recent change
regarding ${com.sun.aas.hostName} and localhost?

Thanks,
Amy


[1]http://forums.java.net/jive/thread.jspa?messageID=293451
[2]https://glassfish.dev.java.net/issues/show_bug.cgi?id=8551