I'm developing a Grails (2.5.6) App, using NetBeans 7.2, and Java 7.
Everything has been fine, but recently I have noticed that if I run the app from within NetBeans, and then make a change to the code, I now have to stop the app and then re-run it again. It used to just compile the new bits on the fly and I could test out any changes without having to stop the app and then re-run it again.
I did upgrade from Grails 2.1.1 to 2.5.6 a little while ago, but this problem (I am sure) has only been happening the last few days. I've even uninstalled and reinstalled netbeans, but its still happening.
Very frustrating as it's really slowing me down now.
This is totally random, but I have solved the problem. The thing is, it had been working for years, but then suddenly last week it stopped working.
The reason? Well, last week I tidied up my disk and moved/renamed some files, and in doing so I introduced a folder which had a space in it's name. (ie all my projects used to be in a folder called \apps\grails\ and then after I tidied things up I had folders like \apps\grails 2.1.1\ and \apps\grails 2.5.6\ etc. Note therefore, I had introduced spaces in the folder names.
As soon as I removed the spaces (so instead, I had \apps\grails2.5.6) - bingo! It started working again.
I have absolutely no idea why this should be, but it is what it is.