Help please with spring -
struts integration
When I swich to module2 and try to get bean from /WEB-INF/servlet/beans2.xml I get the following exception:
2006-05-09 10:03:14 StandardContext[/eszkola]Initializing WebApplicationContext for Struts ActionServlet 'action', module ''
2006-05-09 10:03:16 StandardContext[/eszkola]Initializing WebApplicationContext for Struts ActionServlet 'action', module '/album'
2006-05-09 10:03:55 ApplicationDispatcher[/eszkola] Servlet.service() for
servlet action threw exception
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'bean' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:688)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:227)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:152)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:606)
------------------------------------------------------------------------------------------------------------------------------------
If I put '/WEB-INF/servlet/beans2.xml' to first configuration file and delete plugin from second confiuration file everything is ok.