Grails Class Reloading not working with v2 & IntelliJ 12


Staff member
I noticed recently whilst using the latest version of Grails 2.2 that class reloading was not working, i.e. when you run the app through IntelliJ Idea, make a change to either a gsp, or even css stylesheet or a controller class for example and refresh the page you're working on in the browser that it does not reflect the change you made.

Which is a shame, because the class reloading mechanism is supposed to be one of the major improvements in v2.2.

The problem appears to be with the way that IntelliJ is launching the app, Luckily there is an easy work-around until a real fix is available.

In IntelliJ, Go to Edit Configurations, and add the following to your VM Options:

-javaagent:/Library/grails/grails-2.2.0/lib/org.springsource.springloaded/springloaded-core/jars/springloaded-core-1.1.1.jar -Xverify:none

Replace the Bold text with whatever your path is to your grails install locations (same as GRAILS_HOME)