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
When I encountered this error, it turned out to be because the machine wasn't connected to the network and so couldn't bind to the IP address that was set in /etc/hosts
and /etc/sysconfig/network-scripts/ifcfg-eth0
(I'm using CentOS). As soon as I enabled the network (mine is a VM) it worked fine.
So the message was misleading in my case: there wasn't (as far as glassfish could tell) anything listening on port 4848 on the desired IP address, but there was evidently an error when trying to attach to that port because the machine itself wasn't connected to the network.