I'm trying to understand why I am seeing the error "Error running <run config name>: Address localhost:8080 is already in use" when I try to start Tomcat from intellij.
I have checked that the port is not in use:
I am able to start Tomcat to use port 8080 directly.
My platform is Windows XP.
netstat -a shows that 8080 is not in use.
However the port 18080 is in use.
Does Intellij try to scan the ports in use before trying to start Tomcat?
Maybe there is a bug that means that when a port number ending in 8080 (like 18080) is in use intellij considers that the port 8080 is in use.
If I change the Tomcat configuration to use a different port e.g. 8181, then intellij can start Tomcat without any problem.
So I can work around the problem - but I would be interested to understand what the cause is.