title: Access grailsApplication or Service in groovy class
body: <p>I am trying to access <code>grailsApplication</code> in groovy class under <code>src/groovy</code> but I get a null pointer exception. I also tried to inject a service into the same class and same result. How can I access <code>grailsApplication</code> or a service from groovy class? (I am using Grails 1.3.7)</p>