All posts tagged with 'grails'

Grails: Completely disable stacktrace.log file

24-Mar-09

Regarding my question on twitter about completely disabling the creation of stacktrace.log from a Grails application in production mode, here is my answer: environments { production { log4j = { appenders { null name:’stacktrace’ } } } development { } } Be careful: This overwrites all other log4j closures that are made outside the environment […]

Read the complete article »

Grails’ withFormat block

23-Mar-09

Some things are not really different in Rails and Grails world. The pendant to Rails’ respond_to method is Grails withFormat block. Both are supposed to render a different content type as requested according to the accept header and and the format parameter. And both fail to some extend with Internet Explorer 5.5 to 7.0. For […]

Read the complete article »

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 transaction exception was my use of annotated Hibernate classes together with additional constraints in Grails, but Graeme figured […]

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-app Run grails with a different environment: grails prod run-app // production grails -Dgrails.env=mycustomenv run-app // mycustomenv

Read the complete article »

Some random Grails thoughts and tipps

04-Dec-08

Lately i’ve been rambling and ranting a lot on twitter about the Grails framework. To my surprise, many other developers actually read this tweets and helped me out on some problems. Thanks a lot gals and guys, i really appreciate that. Me rambling isn’t meant to be personal at any time, i guess you know […]

Read the complete article »