GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 92 forks source link

Meap V12:-- JVM bind error with ctrl-c #52

Closed niccs closed 10 years ago

niccs commented 10 years ago

As per page 10, If I close the application with ctrl-c and again run the application, I get the error:- java.net.BindException: Address already in use: JVM_Bind:8080

I need to manually kill the earlier process and restart again. Is this a problem with closing the applicaion with ctrl-c

niccs commented 10 years ago

While browsing, I found the command grails stop-app, which worked for me.It would be nice, if this is mentioned in Chapter 1 qotd application example

pledbrook commented 10 years ago

This is new to Grails 2.3, hence why it's not mentioned in the chapter yet. We should definitely do that though. Thanks for the report!

pledbrook commented 10 years ago

Ctrl-C seems to work fine now (at least with Grails 2.3.4). Nonetheless, I've added a brief mention of the stop-app command.