Tomcat configuration using eclipse

What is the reason for this error when running tomcat 6.0 on eclipse ide helious:

Several ports (8005, 8080, 8009) required by the Tomcat v6.0 server on the local host are already in use. Perhaps the server is running in a different process, or the system process might use a port. To start this server, you need to stop another process or change the port numbers.

+4
source share
4 answers

Just read the error message: Tomcat is already running.

+3
source

Or:

  • you have tomcat working in the 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)
  • using tomcat ports is used by other programs running in the background ( solution : kill processes using these ports from your task manager)
+2
source

Some applications use ports configured in Tomcat.

Either check the applications using these ports on netstat, either kill them, or configure different ports for Tomcat.

Check if any Java application server is working, they usually use these ports.

Sometimes, when you start Tomcat from Eclipse, you stop Tomcat from the Servers view and it continues to run in the background. I found that restarting Eclipse makes it stop forever.

+1
source

The problem is that the tomcat server should not start from Eclipse, it should start from the cmd screen using the startup.dat and shutdown files, using the shutdown.dat file, using its path in cmd as follows:

D: \ Apache-Software-Foundation \ Tomcat-8.0 \ Bin \ startup.bat

D: \ Apache-Software-Foundation \ Tomcat-8.0 \ Bin \ shutdown.bat

0
source

All Articles