Grails ApplicationContext.xml grailsResourceLoader

后端 未结 3 1597
悲&欢浪女
悲&欢浪女 2021-01-19 04:08

I’m trying to get a Project running on Tomcat7 that requires some Plugins and is written in Grails.

Creating a -war with the command grails prod war

相关标签:
3条回答
  • 2021-01-19 04:48

    https://groups.google.com/forum/#!forum/grails-dev-discuss please.

    (copy over the applicationContext.xml from the 2.4 distro into your grails app)

    0 讨论(0)
  • 2021-01-19 04:57

    Simply,

    Remove grailsResourceLoader bean reference (the line below) from applicationContext.xml.

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

    and remove it from the property of grailsApplication bean

    and you will have:

    <bean id="grailsApplication" class="org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean">
        <description>Grails application factory bean</description>
        <property name="grailsDescriptor" value="/WEB-INF/grails.xml" />
    </bean>
    
    0 讨论(0)
  • 2021-01-19 04:59

    See the section "Changes To applicationContext.xml" - http://grails.org/doc/2.4.x/guide/upgradingFrom23.html

    Basically remove the reference of grailsResourceLoader and corresponding bean declaration form applicationContext.xml

    0 讨论(0)
提交回复
热议问题