Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I run grails -Dserver.port=80 run-app, I get

LifecycleException:  Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind<n                                                          ull>:80
    at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:212)
    at grails.web.container.EmbeddableServer$start.call(Unknown Source)

When I run grails -Dserver.port=80 run-war, the web app runs perfectly.

I'm using Windows 7 and grails 1.3.7 with the built-in tomcat server. I'm new to this, so if you need more information, please ask.

How can I get run-app working on port 80?

share|improve this question
add comment

1 Answer

The exception message states that the Address already in use. ie. another application is already taken and is listening on port 80. If the run-war command works successfully, it will have taken port 80. Are you sure that this process has stopped before running the run-app command?

Checkout this question/answer for how to investigate which process is listening on a certain port.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.