This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes BeanDefinitionStoreException on application deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "BeanDefinitionStoreException on application deployment" Watch "BeanDefinitionStoreException on application deployment" New topic

BeanDefinitionStoreException on application deployment

Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 232
Hi All,
I have attempted to deploy an application containing struts2, spring and hibernate to tomcat and got the fllowing error, on deployment.
Has anybody seen this type of error before, what could be causing it??

org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

Usually if you scroll to the bottom of your trace, you will find the root cause of your exception, which will tell us what actually went wrong. Can you post the root cause?



Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Janes Smith

Joined: Dec 02, 2008
Posts: 2
Hi Mark,
I get the following:-

Cannot locate the chosen ObjectFactory implementation: org.apache.struts2.spring.StrutsSpringObjectFactory - [unknown location]
at org.apache.struts2.config.BeanSelectionProvider.alias(
at org.apache.struts2.config.BeanSelectionProvider.alias(
at org.apache.struts2.config.BeanSelectionProvider.register(
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(
at org.apache.struts2.dispatcher.Dispatcher.init(
at org.apache.struts2.dispatcher.FilterDispatcher.init(
at com.ugly.action.struts.filter.Struts2Dispatcher.init(
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(
at org.apache.catalina.core.ApplicationFilterConfig.<init>(
at org.apache.catalina.core.StandardContext.filterStart(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.addChildInternal(
at org.apache.catalina.core.ContainerBase.addChild(
at org.apache.catalina.core.StandardHost.addChild(
at org.apache.catalina.startup.HostConfig.deployWAR(
at org.apache.catalina.startup.HostConfig.deployWARs(
at org.apache.catalina.startup.HostConfig.deployApps(
at org.apache.catalina.startup.HostConfig.start(
at org.apache.catalina.startup.HostConfig.lifecycleEvent(
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

Cannot locate the chosen ObjectFactory implementation: org.apache.struts2.spring.StrutsSpringObjectFactory - [unknown location]

Is there a jar file not in your classpath that has the StrutsSpringObjectFactory?

I agree. Here's the link:
subject: BeanDefinitionStoreException on application deployment
Similar Threads
Service with handlers on JBoss. BIG Problem
error deploying sample
deploying jar files
error during Deployment of EJB
welcome-file in web.xml