users@glassfish.java.net

Re: GlassFish v2 problem with localhost

From: <glassfish_at_javadesktop.org>
Date: Thu, 12 Mar 2009 15:15:37 PDT

I suddenly got the above problem on Vista, but without upgrading Glassfish. Probably due to a Windows (Vista) update.

c:\srv\glassfish\bin>.\asadmin.bat start-domain
Starting Domain domain1, please wait.
Log redirected to C:\srv\glassfish\domains\domain1\logs\server.log.
Redirecting output to C:/srv/glassfish/domains/domain1/logs/server.log
Domain domain1 is ready to receive client requests. Additional services are bein
g started in background.
Domain [domain1] is running [Sun Java System Application Server 9.1_02 (build b0
4-fcs)] with its configuration and logs at: [C:\srv\glassfish\domains].
[b]Admin Console is available at [http://localhost:4848].
[/b]Use the same port [4848] for "asadmin" commands.
User web applications are available at these URLs:
[http://localhost:8080 https://localhost:8181 ].
Following web-contexts are available:
[/web1 /__wstx-services ].
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://garda:8686/jmxrmi] for domain management purposes
.
Domain listens on at least following ports for connections:
[8080 8181 4848 3700 3820 3920 8686 ].
Domain does not support application server clusters and other standalone instanc
es.

[b]Everything looks fine. [/b]

c:\srv\glassfish\bin>.\asadmin.bat start-domain
Starting Domain domain1, please wait.
Log redirected to C:\srv\glassfish\domains\domain1\logs\server.log.
The domain (domain1)[b] is already running[/b].

c:\srv\glassfish\bin>.\asadmin.bat undeploy x
[b]CLI171 Command undeploy failed : Undeployment failed - Unable to connect to admi
n-server at given host: [localhost] and port: [4848].[/b]
Please check if this server is up and running and that the host and port provide
d are correct.

Symptoms were that start-domain seemed to work (by the contents of the messages returned) but that port 4848 was not reserved on localhost, but on 0.0.0.0.

$ netstat -ap tcp|grep 4848
  TCP 0.0.0.0:4848 myhost:0 LISTENING

I was clueless until I did the following:

$ ping localhost
Pinging myhost [::1] from ::1 with 32 bytes of data:
Reply from ::1: time<1ms

I haven't fixed it yet as I now see there's one more important fix to download. Might be one that fixes the hosts file.
[Message sent by forum member 'fredarin' (fredarin)]

http://forums.java.net/jive/thread.jspa?messageID=336749