• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

8080 port already in use

 
Gina vernon
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • 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.

 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic