This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Port Conflict Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Tomcat
Bookmark "Port Conflict" Watch "Port Conflict" New topic

Port Conflict

Mary Chellapa
Ranch Hand

Joined: Jul 26, 2011
Posts: 93
tomcat complaining about port; how do I find out what else is running on port 80?

Zandis Murāns
Ranch Hand

Joined: Aug 18, 2009
Posts: 174

Analyse running processes and services plus if you're running on linux, check if you're trying tu open this port with super user.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19725

I believe that "netstat" is available on just about all machines where one might be running Tomcat.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17030

Paul Clapham wrote:I believe that "netstat" is available on just about all machines where one might be running Tomcat.

"netstat -an" for Windows.

"netstat -ln" for most other OS's.

However, unless you've overridden the Tomcat defaults, Tomcat isn't using Port 80. The default for Tomcat is port 8080. Port 80 is normally used by "regular" webservers such as Apache and IIS.

An IDE is no substitute for an Intelligent Developer.
Alexander Sales
Ranch Hand

Joined: Feb 21, 2011
Posts: 89

after netstat for windows to kill current running process in that port

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Port Conflict
It's not a secret anymore!