my dog learned polymorphism*
The moose likes Tomcat and the fly likes 8080 port already in use Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "8080 port already in use " Watch "8080 port already in use " New topic
Author

8080 port already in use

Gina vernon
Ranch Hand

Joined: Jan 16, 2009
Posts: 108
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

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Jan 16, 2009
Posts: 108
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

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Jan 16, 2009
Posts: 108
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
 
subject: 8080 port already in use
 
Similar Threads
Where to put jdbc jar files
starting Tomcat V5.5 server at localhost
Struts Application (WAR) file deploy
Eclipse and Tomcat instance on *nix
Web project in eclipse doesn't find tomcat