I'm trying to run GlassFish 3.1.1 on Centos 6 in the Joyent cloud. No matter what I set the admin port to in glassfish/domains/domain1/config/domain.xml, when attempting to start it says:
There is a process already using the admin port XXXXX -- it probably is another instance of a GlassFish server.
I've checked netstat and /etc/services and tried dozens of different ports, but to no avail. It just flat out says that every port I try is taken.
Ideas?
I ended up modifying /etc/hosts to make it work.
Before:
After:
I'm not really sure why I needed to do that, but it worked.
Disclaimer: This isn't really my IP address - just used it for this example.
Have you checked your /etc/hosts configuration? it could be that you've recently changed your IP and left something like that ouy? is the hosts file is properly configured? (see Used/blocked ports in Ubuntu). is your hostname, dns working properly?
I've seen similar behavior out of several commercial java apps in the past - it seems to be pretty common to not handle ipv6 capabilities very well, as well as not handling multiple NICs well.
Do use the [email protected] guys as a resource - they're there to help, and glassfish is common enough that I'd like to see this Q FAQ-i-fied.
Best,
--e (@ joyent)
This symptom occurs if your chosen host name does not resolve.
The host name is defined in /etc/sysconfig/network:
Check if you can ping it:
If this is not the case and your IP address is static, edit /etc/hosts and add an entry for your hostname:
(use 'ifconfig eth0' to determine your ip)
Now ping will succeed and glassfish will start.
I have found on a Centos 6 Oracle Xe installation I have to check the following
/etc/sysconfig/network
:In my case, it was
/etc/sysconfig/network
host definition conflict that caused the problem. thanks to bebboOracle specific host areas
listener.ora (not always essential but can pertain) tnsnames.ora in SQL+ show parameter local_listener glassfish check the config in
defaults.xml