0

I am using groovy and grails tool suite( ggts ), when run grail application the following error fire:

Server failed to start for port 8080: Address already in use: JVM_Bind
                                      (Use --stacktrace to see the full trace)

so guide me on this situation.

cfrick
  • 35,203
  • 6
  • 56
  • 68
  • 1
    possible duplicate of [Grails: Resolving "Server failed to start for port 8080: Address already in use."](http://stackoverflow.com/questions/13522307/grails-resolving-server-failed-to-start-for-port-8080-address-already-in-use) – cfrick Oct 30 '14 at 08:47
  • in 8080 port, some other application is running. kill that first. otherwise try to restart the system – Visme Oct 30 '14 at 09:38

1 Answers1

2

You have to stop other app listening 8080 port, or use a different port. Like 8081:

grails -Dserver.port=8081 run-app 

Also you could configure Grails to always use 8081 port by adding into grails-app/conf/Config.groovy following line:

grails.server.port.http=8081
Igor Artamonov
  • 35,450
  • 10
  • 82
  • 113