Spring Toolbox - port 8080 required by Pivotal tc Server Developer Edition version 3.0 is already in use

The following error appears when running codes in the Spring Tool Suite.

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

Port 8080, required by Pivotal tc Server Developer Edition version 3.0, is already in use. Perhaps the server is running in a different process, or the system process may use the port. To start this server, you need to stop another process or change the port numbers (numbers).

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

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

Also, below I get on localhost: 8080

localhost: 8080

By changing the 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.

+7
java spring-mvc spring-tool-suite
source share
6 answers

You have an application running on 8080, so you need to complete everything that is currently running on port 8080.

If you are using Windows, follow these steps:

 netstat -a -o | find "8080" 

If you are using Mac OS (which I think you are), use:

 sudo lsof -i :8080 

Complete this application, and then launch Pivotal.

Otherwise, you can change the main server port in the configuration file:

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

Hope this helps.

+12
source share

steps to be taken

  • change the port number in the catalina.properties file in the server folder

    eg.
    bio.http.port = 18080
    bio.https.port = 18844

  • kill java.exe running on port 8080 (or any other port that creates the problem).

    TcpView to kill a process on a dedicated port
  • Right-click on the server and then select "tc server clean working directory"
  • Right click on the server and then click "Clear"
  • and there leave "baaaam"

    Cleanup Server Folder
+3
source share

I want to update the response "user4023394" for windows:

  • double-click "Pivotal tc Server Developer Edition .."

enter image description here

  • a window similar to the image below appears, change the port number for "neo.http.port" and "neo.https.port" [circled in the image]

enter image description here

  • right-click on "Pivotal tc Server .." and click on "clean working directory of tc .. server"

enter image description here

  • restart the server.
+3
source share

You can enter:

 run configurations 

Find the application name in the tree below:

 java application 

and in:

 (X) = Arguments 

tab ---> VM arguments add something like this:

  -Dserver.port=8888 

8888 can be any port on which you want to run an HTTP server.

That's all, good luck.

+1
source share

First of all, check your port: 8080 on your system.

I am using linux, I have followed this approach and it worked for me.

Step 1: sudo netstat -nlp | grep 8080

It showed which PID my port is listening on.

tcp6 0 0: 8080: LISTEN 1112 / java *

Step 2: sudo kill -TERM 1112

And run your project on STS:

Run as -> Run on server

And it worked perfectly on http: // localhost: 8080 / myapp /

+1
source share

just click Pivotal Tc Server Developer Edition v3.1, it will open the overview, then go to the ports where you get the optional port name - HTTP / 1.1, portnumber-8080, change the port number there - 8888 do not make any changes to Catalina.XML .

-one
source share

All Articles