Hi,
In my staterkit-servlet.xml I have besides Dispatcher....
a bean wich reference a facade which is declared in my applicationcontext.
in my starterkit-servlet.xml :
<bean name="mainview.htm" class="myPackage.MainViewController">
<property name="facade">
<ref parent="starterkitFacade"/></property>
</bean>
in my application context.xml I have
<bean id="starterkitFacade" class="myPackage.StarterKitImpl">
(some properties binding DAO goes here)
</bean>
in my web.xml
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>
</listener>
and
<servlet>
<servlet-name>starterkit</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
So I load DAO information in my application context and I can't access beans declared there from the servlet point of view
On starting I have this error
Error creating bean with name 'mainview.htm' defined in resource [/WEB-INF/starterkit-servlet.xml] of ServletContext: Can't resolve reference to bean 'starterkitFacade' while setting property 'facade'
It can't ref the starterKitFacade coming from applicationContext !!!
What I am doing wrong ???
Thanks for your help


Reply With Quote