Objectless Blog

Tag: Grails

Grails 1.2-M3 to 1.2-M4 Upgrade Quirks

by admin on Nov.17, 2009, under Programming

Yes quirk would be the right word.

For the past weeks I have been building an ERP system from scratch using Grails 1.2-M3 using  the following plugins;

  1. Grails Security
  2. GrailsUI
  3. ImageToolkit
  4. Jasper

So when I heard about Grails 1.2’s 4th milestone, I eagerly downloaded it, made the usual changes to my dev PC’s configuration as well as in eclipse and ran grails upgrade via command line.  As expected everything works except that my datatable does not work anymore and I could not run grails from eclipse.

After a few hours of digging through the error messages and new M4 configuration, I was able to solve my problem.  Here is what I did;

  1. The grails upgrade command does not modify your project’s ivy.xml.  Simple change rev=”1.2-M3” to rev=”1.2-M4”
  2. It seems that tomcat does not know where to place the javascript folders  in the right place, causing grails-ui to misbehave.  Go to <HOME>\.grails\1.2-M4\plugins and extract the grails-grails-ui-1.1.1.zip\webapp\js\grailsui folder to your <GRAILS_PROJECT>\webapp\plugins\
  3. Delete your old project directory <HOME>\.grails\1.2-M4\projects\<PROJECT_NAME>
  4. Delete all jars under <GRAILS_PROJECT>\lib\build
  5. Run Clean
Leave a Comment :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...