Unable to start Glassfish 3.1 even though port not occupied

后端 未结 10 1193
傲寒
傲寒 2021-02-07 02:11

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

10条回答
  •  名媛妹妹
    2021-02-07 02:34

    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.

提交回复
热议问题