Reputation: 51
whats the cause of this error while running tomcat 6.0 on eclipse ide helious:
Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
Upvotes: 5
Views: 2370
Reputation: 31
The problem is that the tomcat server must not start from inside the Eclipse, it should start from the cmd screen by using the files startup.dat and shutdown by using the shutdown.dat file using their pathin the cmd like this:
D:\Apache-Software-Foundation\Tomcat-8.0\bin\startup.bat
D:\Apache-Software-Foundation\Tomcat-8.0\bin\shutdown.bat
Upvotes: 0
Reputation: 3557
Or:
Upvotes: 3
Reputation: 7757
Some application is using the ports configured in Tomcat.
Either check the applications using these ports with netstat and kill them, or configure different ports for Tomcat.
Check if there's any Java Application Server running, they generally use these ports.
Sometimes when you run Tomcat from within Eclipse, you stop Tomcat from the Servers view, and it keeps running on the background. I've found that restarting Eclipse makes it stop for good.
Upvotes: 1