Skip to content

Instantly share code, notes, and snippets.

@dongwq
Last active August 29, 2015 14:03
Show Gist options
  • Save dongwq/d74c87680c8d0dd677f6 to your computer and use it in GitHub Desktop.
Save dongwq/d74c87680c8d0dd677f6 to your computer and use it in GitHub Desktop.
Upgrading from Grails 2.3.8 to 2.4.2

Upgrading from Grails 2.3.8 to 2.4.2

When upgrading to Grails 2.4.2 i ran into an issue where the following error message would pop up.

Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'grailsResourceLoader' while setting bean property 'grailsResourceLoader'; To solve this issue you need to delete some lines in the <grails-app>/web-app/WEB-INF/applicationContext.xml file.

Delete the following lines:

<property name="grailsResourceLoader" ref="grailsResourceLoader" />

<bean id="grailsResourceLoader" class="org.codehaus.groovy.grails.commons.GrailsResourceLoaderFactoryBean" />

And you should be up and running quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment