Hi,
I have two submodules in struts application. I have defined the spring contextLoaderPlugIn in each
submodule sub1-config.xml(default) & sub2-config.xml(/test) file. Also i have two set of beans,each defined in its own
spring xml file. I was wondering if this is the right way to setup. since i get an error saying, "No bean named
'test' is defined:..." ,while trying to access the bean in a particular module action class. It finds bean for one module but not for other.
I see the beans getting loaded for each contextLoaderPlugin?
<plug-in className="org.springframework.web.struts.ContextL oaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/spring/springbean1.xml"/>
</plug-in>
<plug-in className="org.springframework.web.struts.ContextL oaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/spring/springbean2.xml"/>
</plug-in>
Thanks


Reply With Quote