If anyone is interested, this is what my hosts file looked like. Note the date. I did not change it. "Something" did. Very strange.
I added the line:
127.0.0.1 localhost
and all was fine
I am not posting this to mess up this thread, but as a heads-up. IMO glassfish should check that its possible to connect to localhost:4848 after 'asadmin start-domain'. It would have saved me some headache.
C:\srv\glassfish\bin>dir c:\Windows\System32\DriverS\etc\hosts
Volume in drive C is OS
Volume Serial Number is 8EDA-F4E4
Directory of c:\Windows\System32\DriverS\etc
[b]2006-09-18[/b] 22:41 736 hosts
1 File(s) 736 bytes
0 Dir(s) 35 153 575 936 bytes free
C:\srv\glassfish\bin>type c:\Windows\System32\DriverS\etc\hosts
# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
::1 localhost
[Message sent by forum member 'fredarin' (fredarin)]
http://forums.java.net/jive/thread.jspa?messageID=336750