Tomcat not starting (throwing java.net.BindException: )

前端 未结 11 2126
礼貌的吻别
礼貌的吻别 2021-02-04 01:05

I have done the following settings to run a Java web project but somehow my Tomcat is not starting from Eclipse:

JAVA_HOME : C:\\Program Files\\Java\\jdk1.6.0_         


        
相关标签:
11条回答
  • 2021-02-04 01:18

    It says the port number 8009 is already occupied by some other process running on your OS try searching for that process and stop it or make your tomcat to run on different (free) port

    0 讨论(0)
  • 2021-02-04 01:22

    kill the respective (listening) process on this port i.e. 8009. use

    netstat -a -o -n

    to look for the PID of the process. It may look something like this TCP [::]:8009 [::]:0 LISTENING 892

    use the taskkill command to kill the process. example:

    taskkill /F /PID 892

    0 讨论(0)
  • 2021-02-04 01:27

    Something else is using port 8009.

    Either shut down the thing that is using 8009 or change your server.xml to use another port than 8009

    0 讨论(0)
  • 2021-02-04 01:29

    Other Tomcat is running on the same port so better to kill using 9 rather than 15

    kill -9 PID

    This was helpful to me.

    0 讨论(0)
  • 2021-02-04 01:31

    Update all available ports one by one with ports that are free. This must fix the issue

    31-Jul-2019 16:28:30.641 SEVERE [main] org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:8005]: java.net.BindException: Address already in use: JVM_Bind

    0 讨论(0)
  • 2021-02-04 01:33

    these lines :

    SEVERE: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8009"]
    java.net.BindException: Address already in use: JVM_Bind <null>:8009  
    

    imply that there is already a service running on port 8009. is there a tomcat (with ajp) running already?

    if the service running on 8009 is needed you could change the connector configuration in server.xml to something like below :

    <Connector port="8089" protocol="AJP/1.3" redirectPort="8443" />
    
    0 讨论(0)
提交回复
热议问题