I have a CentOS 5 server on which I plan to experiment with Glassfish. The server is up and running, I can ssh to it and have root access.
So I installed Glassfish: I followed this link on the Oracle GlassFish Downloads site and downloaded the installer file
java_ee_sdk-6u4-jdk-linux-x64.sh. Then I
ssh -X'ed to the server as
root, ran the installer file, chose Typical Installation and left mostly every option at its default, except for the installation directory that I set to
The installation itself worked fine, except that it failed to start the domain after successful installation. It gave me the same error message as when I now try to manually start the domain:
# /opt/glassfish/bin/asadmin start-domain There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server. Command start-domain failed. # /opt/glassfish/bin/asadmin restart-domain Server is not running, will attempt to start it... There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server. Command restart-domain failed.
However, there is no process running on port 4848!
# netstat -tulpn | grep 4848 # /sbin/fuser 4848/tcp # /usr/sbin/lsof -i :4848 # grep 4848 /etc/services appserv-http 4848/tcp # App Server - Admin HTTP appserv-http 4848/udp # App Server - Admin HTTP
From my own PC:
# nmap -P0 my-experimentation-server Starting Nmap 6.40 ( http://nmap.org ) at 2014-01-13 12:37 CET Nmap scan report for mbpc09.cs.uni-saarland.de (18.104.22.168) Host is up (0.018s latency). Not shown: 997 filtered ports PORT STATE SERVICE 22/tcp open ssh 631/tcp closed ipp 2222/tcp closed EtherNet/IP-1 Nmap done: 1 IP address (1 host up) scanned in 11.84 seconds
Just to be sure, I uninstalled Glassfish altogether, purging
/opt/glassfish, then reinstalled it, but this time I configured the admin port to be
12345. Same result, it's telling me there is already a program running on port
12345. Except there isn't. At no point could I ever reach
Starting an Apache server on the my-experimentation-server on port 80 works fine, and I can reach the server from my own PC.
On my-experimentation-server I issued the command
nc -l 4848which opens a TCP socket in listenting mode on port 4848. This works! From my own PC, I can then use
nc my-experimentation-server 4848to transfer messages back and forth between the two computers. So, port
4848is not blocked by another process, or filtered by a firewall, or whatever. This is definitely a Glassfish problem.