Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

8080 port

Ranch Hand
Posts: 1402
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am using Eclipse Version: Oxygen.2 Release (4.7.2) with Tomcat 8.0.36. My application is built with Spring when I run it by run-> Spring Boot app. I get the nextg message;

Then from dmc command line I kill the port 8080 restart the server and run the app, but I still get the same error...

Any idea, please?
Saloon Keeper
Posts: 22248
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your Spring Boot application has an embedded copy of Tomcat inside it and that copy of Tomcat by default would listen on port 8080.

But one and only one application can use a given TCP/IP port in a single OS instance. That's a fundamental limitation of TCP/IP networking.

It's likely that you've already got a standalone Tomcat running or that you launched a copy of Tomcat from Eclipse and that app grabbed port 8080, denying it to the Tomcat instance inside your Spring Boot app.

Port 8080 is also used by other webapp servers, and they, too can hog that port if you're running one of them.
Do not set lab on fire. Or this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic