views:

204

answers:

0

I used an older grails version, latest that was out in November 2009, and upgraded to 1.2.1 now. Unfortunately. I did not touch the app, checked it out of VCS. Now the spring injection does not work anymore.

I depend on external libraries (JmsTemplate, ActiveMQ, ...) and define all the beans in my resources.xml file. To test if spring is around, I implemented org.springframework.beans.factory.InitializingBean on a service and i get the output at app startup:

void afterPropertiesSet() {
    println 'spring was here'
}

my service com.acme.JmsSenderService has the property:

def jmsTemplate

and the setup looks like this:

<bean id="jmsSenderService" class="com.acme.JmsSenderService">
    <property name="jmsTemplate" ref="jmsTemplate"/>
</bean>

I tried the advice given here and I get

NoSuchBeanDefinitionException: No bean named 'jmsTemplate' is defined

I deleted my old Grails version and I am stuck...