How do I clear an address for Glassfish 4.0 with default settings?

前端 未结 3 1217
梦毁少年i
梦毁少年i 2021-02-06 03:49

I get the following error when I\'m trying to start my glassfish server with default settings from netbeans IDE 7.3.1:

java.net.BindException: Address already in         


        
3条回答
  •  渐次进展
    2021-02-06 04:32

    The main reason is that another server is using the port 8080, that is the one per default (to check in windows if those ports are being used in the commands line: netstat -a -o)

    You would need to change it in:

    /glassfish/domains/domain1/config/domain.xml

    Change: name="http-listener-1" **port="8080"** name="http-listener-2" **port="8181"**

    To: name="http-listener-1" **port="9090"** name="http-listener-2" **port="9191"**

    Then, remove the server from your framework (Eclipse for example), close it, start it and add the Glashfish again.

    Before starting your framework make sure there is no file such: /glassfish/domains/domain1/osgi-cache/felix/*.lock

    In case it exists, remove it, you may stop any Java process for removing it.

    These steps worked for me.

提交回复
热议问题