Skip to content

Upgrading Grails, GWT, grails-gwt plugin and beyond

by dkberktas on April 12th, 2010

@Remotespots project was started a couple of months ago and and after some time all the technologies were updated to their current versions (Grails 1.2.2, GWT 2.0 which is a huge change from 1.7, and finally grails-gwt 0.5). Since we were busy w/ the features we ignored the upgrade but time has come to sent Remotespots to the wild, and we want it to be ready to its limits. Below you can find the steps and obstacles we encountered during the upgrade process. (I switched to Ubuntu from Windows XP, my headphones are still not working but at least I can open Eclipse under 60 seconds! so the things below is tested on Ubuntu 9.04)

  • Download and change GRAILS_HOME to new grails version (1.2.2)
  • Run grails upgrade
  • Run install-plugin gwt (so that it installs 0.5)
  • First obstacle
  • Error executing script CompileGwtModules: No such  property: usingGoogleGin  for class: _Events
    gant.TargetMissingPropertyException: No such property: usingGoogleGin for class: _Events
            at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:329)
            at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
            at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
            at gant.Gant.withBuildListeners(Gant.groovy:344)
            at gant.Gant.this$2$withBuildListeners(Gant.groovy)
            at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
            at gant.Gant.dispatch(Gant.groovy:334)
            at gant.Gant.this$2$dispatch(Gant.groovy)
            at gant.Gant.invokeMethod(Gant.groovy)
            at gant.Gant.processTargets(Gant.groovy:495)
            at gant.Gant.processTargets(Gant.groovy:480)

    To solve it, run grails clean command and empty ~\.grails\1.2.2\scriptCache folder. I found this solution from this link.

  • Another problem you are likely to see is
    grails  GWT module ... may need to be (re)compiled

    To solve it, run grails compile-gwt-modules command and refresh firefox w/ ctrl+f5 OR alt+shift+r

  • Last thing to be careful is, after started the gwt client with the command grails run-gwt-client, since GWT 2.0 get rid of hosted mode (finally), to see the changes on your code w/out restarting the server, add the suffix to the url ?gwt.codesvr=127.0.0.1:9997, from this link, you can find the solutions to the problems people have w/ the grails-gwt plugin.
No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS