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
You need to start tomcat at port 80 as root user.Other port do not.
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.
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.
for /f "tokens=5" %a in ('netstat -ao ^| findstr 0.0.8080') do taskkill /pid %a
or
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>
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.