Category Archives: Grails

Spring Security with Grails 3

I am a big user and advocate of Grails, and I was curious about working with Grails 3, so I started taking a look at it during the M2 release. Most of the applications I work on require authentication/authorization, and … Continue reading

Posted in Grails | Tagged , , , , , , | 3 Comments

Using Grails REST for authentication in an AngularJS SPA

Introduction I have played around with AngularJS for a few weeks now. I like how it provides for separation of concerns on the client-side that us server-side programmers prefer. I have built a couple of controllers that are retrieving data … Continue reading

Posted in AngularJS, Grails | Tagged , , , , , | 37 Comments

Grails 2.3 Maven dependency caching issues

tl;dr version: Change BuildConfig.groovy to reference your local mavenRepo repository as: Long version: If you have played around with Grails 2.3, you know that the project has switched to Maven (Aether, actually) as default for dependency resolution, as opposed to … Continue reading

Posted in Grails, Maven | Tagged , , , , | 2 Comments

SpringOne 2GX Wrap-up

(I have been meaning to post this for a while, but life has caught up with me, including my company’s tech conference, where I was a speaker in one session and a panelist in another.) On September 9-12, I had … Continue reading

Posted in Grails, Groovy, Spring | Tagged , , , , , , , , , | Leave a comment

Grails cascade validation for POGOs

Recently, I have been working on some code that does not use any of the GORM capabilities in Grails, but instead controllers call to a service layer which interacts with web services hosted on an ESB. The domain classes that … Continue reading

Posted in Grails | Tagged , , , | 10 Comments

Issue with Tomcat deployment after Grails upgrade 2.0.1 -> 2.2.1

I have been in the process of upgrading all of our existing Grails applications from version 2.0.1 to version 2.2.1. On one particular project I upgraded earlier today, everything worked fine until I attempted to deploy the application to our … Continue reading

Posted in Deployments, Grails | Tagged , , , , , , , , , | 1 Comment

Issue with inner classes in Grails 2.2.0

I was working on a controller in a Grails 2.2.0 project, and it was a Groovy class structured something like this: I have used this pattern previously in Grails 1.3.7 and Grails 2.0.1, however when I invoked the closure which … Continue reading

Posted in Grails, Groovy | Tagged , , , , , , , , | 5 Comments