Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Tomcat connector configured to listen on port 80 failed to start

I run webapp https://github.com/donhuvy/mycustomer I face error

Description:

The Tomcat connector configured to listen on port 80 failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector's configuration, identify and stop any process that's listening on port 80, or configure this application to listen on another port.

This is my log https://gist.github.com/donhuvy/93210850f955f9ddbc00ab735a0ade18#file-terminal-log-L191

I have been check port 80 by command

sudo lsof -i TCP:80 | grep LISTEN

But result is nothing. How to fix it? (I use macOS 10.12.5)

Update:

Run Sencha client (inside directory client)

sencha web -port 8082 start

and I change Spring Boot port to 8082:

APPLICATION FAILED TO START

Description:

The Tomcat connector configured to listen on port 8082 failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector's configuration, identify and stop any process that's listening on port 8082, or configure this application to listen on another port.
like image 771
Do Nhu Vy Avatar asked Jun 19 '17 15:06

Do Nhu Vy


People also ask

What port does Tomcat listen on?

By default, Tomcat listens on port 8080. However, if you want to configure Tomcat to listen on say, port 8081 as well, follow the steps below: Edit the server.

How can I tell if Tomcat is listening on port?

A simple way to see if Tomcat is running is to check if there is a service listening on TCP port 8080 with the netstat command. This will, of course, only work if you are running Tomcat on the port you specify (its default port of 8080, for example) and not running any other service on that port.

How do you fix the start of Tomcat failed the server port 8080 is already in use?

Kill the previous instance of tomcat or the process that's running on 8080. Save this answer. Show activity on this post. Select the project -> Right-Click -> clean and build and then run the project again simply solve the problem for me.


1 Answers

On linux ports below 1024 can be opened only by root, so the port 80 is restricted by default

if you want to publish your app on 80 port you need to redirect request from port 80 to the port you gonna run your springapp (e.g 8080) port

you can use apache2 server wich is allowed by default to work on port 80 and can forward requests for you to tomcat

Source: Spring Boot running app on port 80

like image 68
Dinesh K Avatar answered Oct 23 '22 01:10

Dinesh K