• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Can't start Tomcat in Eclipse - Error message indicates required port is busy

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

When I try to start start a Tomncat server in Eclipse, I get a message: "Port 80 required by Tomcat v6.o server is already in use." I changed the port to 8080 in Tomcat's server.xml file, but then got the message: "Port 8080 required by Tomcat v6.o server is already in use."

I rebooted and, with no all other processes running, got the same result. It seems that there is a problem starting Tomcat regardless of the port used.

Any suggestions?

Thanks, Bill
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try running netstat to see what's bound to that port and what other ports are available.
 
Bill Herbert
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the feedback, Ben.

Using netstat, I identified the following active connections listening on port 80:
address- local: 0.0.0.0:80, foreign: 0.0.0.0:0
address-local:[::]:80, foreign: [::]:0

and the following listening on port 8080
address- local: 0.0.0.0:8080, foreign: 0.0.0.0:0
address-local:[::]:8080, foreign: [::]:0

All of these connections have the same PID (4), however I could not find this PID in the services window of the task monitor. So I'm not sure what action should be taken regarding these connections.

Meanwhile, I saw that port 8089 was not used, so I experimented by changing the Tomcat port to 8089. I was then able to set up and start a server. I was able to access the server at http://localhost:8089.

Is it OK to proceed using port 8089, as I'm not sure of the implications? If not, I'd appreciate input.

Thanks again,
Bill
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sitting at a windows box right now so I can't see them but look at the help for netstat on your computer.
I think the b switch will show the name of the executable that is bound to each port

netstat /ab or something like that.
 
Bill Herbert
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Ben

I think I've got it figured out now.

Bill
 
reply
    Bookmark Topic Watch Topic
  • New Topic