Wednesday, February 3, 2010

Notes on Google AppEngine 1.3, Grails 1.2.1, and app engine plugin 0.8.8.

Currently in the process of upgrading a grails project to grails 1.2.1. Noted down some observations (and will keep updating as i test stuff)

1.
There doesn't seem to be a need to add the following to the Config log4j anymore (this was needed in grails 1.x see http://jira.codehaus.org/browse/GRAILSPLUGINS-1184)

'null' name:'stacktrace'


2.
Had some trouble with the sessions and kept getting this error

[java] WARNING: Nested in org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.RuntimeException: Session support is not enabled in appengine-web.xml. To enable sessions, put
true in that file. Without it, getSession() is allowed, but manipulation of sessionattributes is not.:


As advised in the plugin documentation, added the following to Config, but it still didn't work!

google.appengine.sessionEnabled = true


Had to eventually update the /web-app/WEB-INF/appengine-web.xml file and uncomment the line below
<!-- <sessions-enabled>true</sessions-enabled> -->


3.
Can now user grails run-app to run the development server instead of grails app-engine

No comments: