In my case it didn't worked. I actuall added to my /etc/hosts 127.0.0.1
hana-009, but when I try to ping hana-009 it says 'bad address'. It seems
that it prefer to use my dns in a resolv.conf.
I tried to use different port the result the same. I don't know what is wrong
with my network configuration.
[hana-009]# ./asadmin start-domain domain1
CLASSPATH= ./../glassfish/modules/admin-cli.jar
Commands: [start-domain, domain1]
asadmin extension directory:
/media/raid/apps/glassfishv3/glassfish/lib/asadmin
Parsing program options
params: {}
operands: [domain1]
Using local password
Setting password to: <non-null>
asadmin --host localhost --port 4848 --interactive=true --echo=false
--terse=false start-domain --debug=false --help=false --upgrade=false
--verbose=false domain1
/0.0.0.0 : 4848 --> FREE
There is a process already using the admin port 4848 -- it probably is
another instance of a GlassFish server.
Command start-domain failed.
[hana-009]#
--
[Message sent by forum member 'daniil_k']
View Post: http://forums.java.net/node/734001