I am using Ubuntu 12.10, and in Eclipse I've to run the PHP scripts and C/C++ codes, but when I am starting synchronization of tomcat 7 server it shows the error as,
Cannot start if the server's Server Port is being used by another process. You if there is already some other program using the port it is configured to use and it will then abort starting. For example, localhost:8080/myApplication/index.a5w.
'Several ports (8005, 8080) required by Tomcat v7.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).'
How do I fix it? Please help me..
Vikas AgrawalVikas Agrawal
2 Answers
You may already to be running a tomcat instance already.
Check what appears. If there is nothing then it must be another service you will need to netstat to check what services are running on port 8080
This command will show you the service. Look for anything on 8080 already.
The last option is the one given above. Jump into either the http or tomcat configs and switch the ports to stop any problems when launching. the server.xml file contains the config that needs changed.
8081 is my suggestion for changing the ports keep it simple.
Thanks
William
LinuxBillLinuxBill
From the Tomcat-Apache documentation: http://tomcat.apache.org/tomcat-3.2-doc/tomcat-apache-howto.html#error_no_apache
This most likely means that Tomcat is trying to use a port that is already being used by someone else - usually Apache or another instance of Tomcat. By default, Tomcat's comes configured to run an HTTP server on port 8080. If you examine the supplied server.xml file, you'll see the following element:
You should be able to alter that port number to have Tomcat run on a different port for HTTP. Check the same file for configuration using port 8005, as well.
AaronAaron