Monthly Archives: February 2009

Grails, Hibernate, Current Session Context

12-Feb-09

Graeme was so kind to help me with this problem. My app worked well with Grails 1.0.4 but not in 1.1-beta3 any more. My first wild guess leading to a HibernateException: contains is not valid without active transactionHibernateException: contains is not valid without active transaction exception was my use of annotated Hibernate classes together with […]

Read the complete article »

Grails startup parameter

09-Feb-09

Just some snippets from the doku that I tend to forget: Run grails on a different port: grails -Dserver.port=9090 run-appgrails -Dserver.port=9090 run-app Run grails with a different environment: grails prod run-app // production grails -Dgrails.env=mycustomenv run-app // mycustomenvgrails prod run-app // production grails -Dgrails.env=mycustomenv run-app // mycustomenv

Read the complete article »