Grails grailsApplication null in Service , Controller
Environment:
Grails on tomcat deployed as war
Reported Issue:
grailsApplication is null
Error Messages:
Cause:
Solution:
Inject the grailsApplication in resources.groovy along with other dependencies.
Grails on tomcat deployed as war
Reported Issue:
grailsApplication is null
Error Messages:
Cannot get property 'config' on null object
Cause:
The service is created in resources.groovy(BeanBuilder) rather than the default behavior of grails. This was done to inject a custom resource to the service.
Solution:
Inject the grailsApplication in resources.groovy along with other dependencies.
0 Comments:
Post a Comment
<< Home