Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 38014  / 3 Years ago, fri, may 21, 2021, 12:36:11

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,




"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..


More From » eclipse-cdt

 Answers
2

You may already to be running a tomcat instance already.



ps aux | grep tomcat


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



netstat -an


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.



<!-- Normal HTTP -->
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port"
value="8080"/>
</Connector>


8081 is my suggestion for changing the ports keep it simple.



Thanks



William


[#32323] Saturday, May 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oneeme

Total Points: 340
Total Questions: 110
Total Answers: 133

Location: Ghana
Member since Fri, Oct 21, 2022
2 Years ago
;