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

前端 未结 11 2143
礼貌的吻别
礼貌的吻别 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:38

    This generally happens if the Connector / shutdown port of the tomcat is already being used. First, run the shutdown.bat (Sometimes we miss out that one instance of the tomcat is already running) Next, in the command prompt run

    netstat -aon | findstr 0.0:
    

    To get the PID of the application that is currently using your port. Either kill that application or use some other port which is not listed when you run

    netstat -a -o -n
    

提交回复
热议问题