I\'m having trouble starting Glassfish 3.1
on a newly setup Debian \"Squeeze\" server. This is a testing server that has been setup and the Glassfish
i
I encountered similar problem in centOS when i set hostname for my linux. set your hostname to localhost , probably your problem will be solved.
command : hostname localhost or
edit /etc/sysconfig/network file in redHat based linux.
goodluck
Check your /etc/hosts file if the current hostname translates to a valid IP address. I think something is misconfigured or simple the IP do not exists.
When I changed it back (in my situation) to the 127.0.0.1 address (of course it could be any other but working and attached IP address), the glassfish could be started properly again.
the problem that the file /etc/host havent PC name with IP add this line in the file.
ip_PC name_PC 192.144.168.2 miserver
This works
http://jvm-java.blogspot.com.es/2010/12/glassfish-v3-linux-process-already.html
-step 1 start glassfish -step 2 change the hostname
result: error starting glassfish
solution: 1 quit the hostname and just leave localhost
2 start glassfish 3 stop glassfish
4 add the hostname
5 start glassfish and it works!!!
$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.2 YOURHOSTNAME
$ glassfish4/bin/asadmin start-domain
Waiting for domain1 to start .......
Successfully started the domain : domain1