• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

8080 port already in use

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using Tomcat 6 on Mac os x Leopard. I came upon the 'several ports required by tomcat already in use' message when I tried to start my server. This seemed to have occurred right after I tried to run my web application directly in Safari, which ran fine. But then I tried to run it from within eclipse and I get this error.
I know I can change the port number in server.xml. But I would like to know which application is using that port. I tried the netstat command, but I couldn't understand the information.

Thanks.

 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The error message litetally says it: port 8080 is already in use.

Shutdown the server which you already started before starting another one from Eclipse. Or change the port number of one of both. You cannot let multiple applications listen on the same port.

To determine which is running on port 8080, simply open http://localhost:8080 in your webbrowser and explore.
 
Gina vernon
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Problem solved. Restarted mac and Tomcat starts usual.


Bauke, to respond to your post:

Bauke Scholtz wrote:
Shutdown the server which you already started before starting another one from Eclipse.


I will do that if this happens again.


To determine which is running on port 8080, simply open http://localhost:8080 in your webbrowser and explore.



When this problem was on going http://localhost:8080 in Safari took me to the Tomcat homepage.

Thanks.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So, Tomcat was already started outside control of Eclipse. Instead of restarting the computer you can also just stop it using the command console scripts, or by service manager, or by killing the java.exe (or whatever it is called in Mac) in the task manager.
 
Gina vernon
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bauke Scholtz wrote:So, Tomcat was already started outside control of Eclipse. Instead of restarting the computer you can also just stop it using the command console scripts, or by service manager, or by killing the java.exe (or whatever it is called in Mac) in the task manager.



Got it.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic