sri
sri

Reputation: 51

tomcat configuring with eclipse

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

Answers (4)

Nazar Al-Wattar
Nazar Al-Wattar

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

Kristof Mols
Kristof Mols

Reputation: 3557

Or:

  • you have tomcat running in your eclipse workspace (solution: stop the server in eclipse or the eclipse process from your task manager)
  • your tomcat is running in the background as a service (solution: kill the tomcat process from your task manager and disable the windows service)
  • the ports tomcat use are used by other programs running in the background (solution: kill the processes using these ports from your task manager)

Upvotes: 3

Fernando Briano
Fernando Briano

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

Aaron Digulla
Aaron Digulla

Reputation: 328536

Just read the error message: Tomcat is already running.

Upvotes: 4

Related Questions