Spring model validation failing in 8.1.3


Since I upgraded from 8.1.2 to 8.1.3 I'm unable to rebuild my grails project without errors. The errors occur during the "Validate Spring Model" step of the build and produce the following errors when validating the generated file:

    Error:Error:line (37)Cannot find matching files
    Error:Error:line (9)Cannot resolve file 'grails.xml'
    Error:Error:line (37)Cannot resolve directory 'grails-app'

I've appended the content of this file to the end of my message. I can't say for sure that the problem was caused by the upgrade to 8.1.3, because I hadn't built the project for a while before upgrading. Presumably I could use the "Exclude from Compile" option on this file to workaround the problem, but I'd like to know if there's another solution, or something wrong with my project setup?


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

    <bean id="grailsApplication" >
        <description>Grails application factory bean</description>
        <property name="grailsDescriptor" value="/WEB-INF/grails.xml" />
        <property name="grailsResourceLoader" ref="grailsResourceLoader" />

    <bean id="pluginManager" >
        <description>A bean that manages Grails plugins</description>
        <property name="grailsDescriptor" value="/WEB-INF/grails.xml" />
        <property name="application" ref="grailsApplication" />

    <bean id="pluginMetaManager" >
        <property name="grailsApplication" ref="grailsApplication" />
        <property name="resourcePattern" value="/WEB-INF/plugins/*/plugin.xml" />

    <bean id="grailsConfigurator" >
            <ref bean="grailsApplication" />
        <property name="pluginManager" ref="pluginManager" />

    <bean id="grailsResourceLoader" >
        <property name="grailsResourceHolder" ref="grailsResourceHolder" />

    <bean id="grailsResourceHolder" scope="prototype" >
        <property name="resources">
   <bean id="characterEncodingFilter"
        <property name="encoding">

1 comment
Comment actions Permalink

As a quick fix, please go to Compiler|Validation settings and disable
Spring validation there. The fix will be included in next 8.1.x releases
and 9.0 EAPs. Thank you!


Please sign in to leave a comment.