• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

spring web application context

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic