Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having some trouble starting Glassfish on port 80 - doing so yields the following error:

0.0.0.0:80: initialize: name or service not known

Any tips?

share|improve this question

Sounds like the internal host-resolution function (probably C's getaddrinfo) is not able to find the host 0.0.0.0.

Try entering in the exact IP in the configuration file, and re-running.

Usually you will get a Bind error instead, but also check to make sure no other services are using port 80: netstat -l --numeric-ports | grep 80 That is a lowercase L.

share|improve this answer
1  
And to find out which process is using port 80: sudo fuser -v -n tcp 80 – MikeyB Dec 21 '09 at 18:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.