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

前端 未结 3 1285
梦毁少年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:12

    It seems that another server is using one of the ports assigned to your glassfish server.

    In my case I got the exception SEVERE: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8009"] java.net.BindException: Address already in use: JVM_Bind :8009

    It turn out to be a forgotten Tomcat instance already running on my pc. When i disabled the forgotten one the exception went away.

    So in your case some other server is occupying a port used by your glassfish server. Find which server it is and stop it, or assign a different port to your glassfish server.

    If you are on windows you can use the netstat -a -o command and see witch process uses the port number:

    For more on how to find a process running on a specific port see also this guide

提交回复
热议问题