Tomcat start up error

后端 未结 4 2128
无人共我
无人共我 2021-02-13 14:42

I am getting the following error in the Catalina log file while starting Tomcat on Windows:

Sep 3, 2010 3:22:53 PM org.apache.catalina.startup.Catalina start
SEV         


        
相关标签:
4条回答
  • 2021-02-13 15:25

    You need to start tomcat at port 80 as root user.Other port do not.

    0 讨论(0)
  • 2021-02-13 15:29

    One application is using the 8080 port. To find out which one, use the following command on Windows Command Prompt:

    C:\>netstat -aon | findstr 0.0:8080
    

    Then take the number in the last column (that's the process ID) and find out which is the process in task manager. If nothing comes out of the command, then you have no application using that port.

    0 讨论(0)
  • 2021-02-13 15:32

    Another process is using that port (probably another Tomcat instance).

    If you don't want to use another port for your actual Tomcat instance, you need to kill that process.

    cmd

    • 1 line

      for /f "tokens=5" %a in ('netstat -ao ^| findstr 0.0.8080') do taskkill /pid %a
      

      or

    • 2 lines

      • get PID

        netstat -ao | findstr 0.0:8080
        

        you get something like this:

        TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       5180
        

        (the last value is the PID - use it in the following command)

      • kill process

        taskkill /pid <pid>
        
    0 讨论(0)
  • 2021-02-13 15:35
    C:\>netstat -aon | findstr 0.0:8080
    

    This had fixed it , by just clearing the process with this id from the processes and restarting TomCat.

    0 讨论(0)
提交回复
热议问题