Spring Tool Suite - Port 8080 required by Pivotal tc Server Developer Edition v3.0 is already in use

Sami picture Sami · Nov 27, 2014 · Viewed 34.7k times · Source

I get the following error when running codes in Spring Tool Suite.

..............................................................................

Port 8080 required by Pivotal tc Server Developer Edition v3.0 is 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).

..............................................................................

Below is a screenshot of the error. Error-Spring Tool Suite

Also, below is what I get on localhost:8080

localhost:8080

By changing port numbers in server.xml (i.e. <Connector acceptCount="100" connectionTimeout="20000" executor="tomcatThreadPool" maxKeepAliveRequests="15" port="${bio.https.port}" protocol="org.apache.coyote.http11.Http11Protocol" redirectPort="${bio.https.port}"/> ), I get the same error with different port numbers.

Answer

Aeseir picture Aeseir · Nov 28, 2014

You have a application running on 8080, so you need to terminate whatever is running currently on 8080 port.

If you running Windows use:

netstat -a -o | find "8080"

If you running Mac OS (which i think you are) use:

sudo lsof -i :8080

Terminate that application and then launch Pivotal.

Otherwise you can change pivotal server port in the config file:

<your tc server folder location>/conf/catalina.properties

Hope that helps.