File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes spring web application context Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "spring web application context" Watch "spring web application context" New topic
Author

spring web application context

Lukasz Kaleta
Greenhorn

Joined: Nov 23, 2005
Posts: 7
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.

 
 
subject: spring web application context
 
Threads others viewed
can we have multiple tile-def file ?
Struts Validator problem
Spring + Struts [1 web app / 2 ApplicationContext]
about struts and spring integration
Splring: ContextLoaderListener not working
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture