BowerStudios.com

  • My Lab
  • Family
  • Friends
  • Professional
  • About
Home

Be sure to compile your Grails app with the correct version of Groovy

daniel —Tue, 08/03/2010 - 3:54pm

  • Groovy

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

Navigation

  • Search
  • Recent content
  • Contact Me
  • Mail
  • Pass Hasher
  • Bower Studios Admin

Quotes

daniel —Fri, 08/25/2006 - 10:16pm

The only really important time in our lives is the time we waste with those we love.

—

Antoine de St. Exupery

  • Log in to post comments
  • daniel's quotes

Popular content

Last viewed:

  • Working with LVM and dm_crypt
  • List the databases in Postgresql
  • Determine version and architecture of Debian/Ubuntu installed
  • Miss America in 1921
  • Using git remotely with ssh keys

Copyright 2019 Daniel Bower
  • My Lab
  • Family
  • Friends
  • Professional
  • About