You need to build a grails application - as it is not entered by default.
youService.grailsApplication = new org.codehaus.groovy.grails.commons.DefaultGrailsApplication()
"DefaultGrailsApplication" by default will look for Config as a configuration class.
Keith source share