Be sure to compile your Grails app with the correct version of Groovy
daniel Tue, 08/03/2010 - 3:54pm
I had thought that since Grails contains it own version of Groovy (which is distributed in the lib directory of your war file) that the Grails command line tool was using that version of Groovy to COMPILE the classes. However that is not the case. So you NEED to make sure that you use the appropriate Groovy environment for your Grails Environment. (It is set via the GROOVY_HOME env var)
As of now,
Grails 1.3 runs off of Groovy 1.7
Grails 1.2 runs off of Groovy 1.6
When I compiled a Grails 1.2 app with Groovy 1.7, I received this error message when I deployed it to Tomcat:
java.lang.NoClassDefFoundError: org/codehaus/groovy/transform/powerassert/ValueRecorder
- Log in to post comments