|
From: Giorgos Z. <gi...@pe...> - 2003-12-04 12:36:25
|
dear list, i am new to spring framework so please excuse me if my question has an obvious answer. here it is: i have setup a simple we application where my web.xml file defines two servlets: a ContextLoaderServler and a DispatcherServer. the first one is responsible for loading my applicationSpecification.xml. the second one loads its servel-name.xml configuration file. now here comes the problem... in the applicationSpecication.xml file i have defined a simple DAO bean (<bean id="beanService"... etc>) and from the servlet-name.xml i refer to this bean in the definition of my Controller: <bean id="myController" class="myControllerClass"> <property name="myService"><ref bean="beanService"></property> </bean> then i deploy my app into tomcat but the two configuration files insist on loading in the wrong order, ie servler-name.xml first, applicationConfiguration.xml second which results in the following deployment error: Can't resolve reference to bean 'beanService' while setting property 'myService' on bean 'myController'; i have tried reading every bit of documentation i could find but i didn't seem to see anything relevant. your help will be greatly appreciated. best regards, giorgos |