0

I'm having trouble starting my Spring Boot application.

When I run it I get the following errors:

Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

Caused by: java.lang.IllegalArgumentException: standardService.connector.startFailed

Caused by: org.apache.catalina.LifecycleException: Protocol handler start failed 

Caused by: java.net.BindException: Address already in use

I work on Linux. Tomcat server is listening on port 8080 (can't change to another one). Other services work fine. Restarting the application or computer didn't help.

  • 1
    "embedded Tomcat" sounds not like "Tomcat listening"...please refer to ["traditional deployment"](https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto.traditional-deployment) – xerx593 May 13 '23 at 16:00
  • 1
    Please provide a [mre]. – Unmitigated May 13 '23 at 16:09

1 Answers1

1

There is already a process running and listening on port 8080. You can check it with the command netstat.

If you can't change the port of your application then the only option would be to kill the other process. You can get the process number with this command:

netstat -nap | grep 8080
Mar-Z
  • 2,660
  • 2
  • 4
  • 16