users@glassfish.java.net

Re: Startup Problem - Port used

From: <glassfish_at_javadesktop.org>
Date: Mon, 07 Dec 2009 22:13:36 PST

Thanks for the hint !

Executing glassfish.jar directly gave me this

[i][..]
root_at_ubuntu:~# java -jar glassfishv3/glassfish/modules/glassfish.jar
Dec 8, 2009 6:01:37 AM com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Felix platform

Welcome to Felix
================

Dec 8, 2009 6:01:48 AM com.sun.enterprise.v3.server.SystemTasks setSystemPropertiesFromEnv
SEVERE: cannot determine host name, will use localhost exclusively
java.net.UnknownHostException: ubuntu: ubuntu
        at java.net.InetAddress.getLocalHost(InetAddress.java:1353)
        at com.sun.enterprise.util.net.NetUtils.getCanonicalHostName(NetUtils.java:103)
        at com.sun.enterprise.v3.server.SystemTasks.setSystemPropertiesFromEnv(SystemTasks.java:152)
[..][/i]

Root cause: [b]There is NO etc/hosts file on the server[/b].
Creating one solves the problem.

[i]127.0.0.1 localhost
127.0.1.1 servername[/i]

(Remark: Simple reason though)
[Message sent by forum member 'itdude' ]

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