Tag: Upgrade
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;
- Grails Security
- GrailsUI
- ImageToolkit
- 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;
- The grails upgrade command does not modify your project’s ivy.xml. Simple change rev=”1.2-M3” to rev=”1.2-M4”
- 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\
- Delete your old project directory <HOME>\.grails\1.2-M4\projects\<PROJECT_NAME>
- Delete all jars under <GRAILS_PROJECT>\lib\build
- Run Clean