Home  >  Forum  >  Spring
Post New Query

Exception: Cannot locate the chosen ObjectFactory implementation: spring


joined on
August 12,2015
Asked on October 08,2015
While integrating spring with struts, I am getting below exception. Need help.

Caused by: com.opensymphony.xwork2.config.ConfigurationException: Cannot locate the chosen ObjectFactory implementation: spring
at org.apache.struts2.config.AbstractBeanSelectionProvider.alias(AbstractBeanSelectionProvider.java:74) ~[AbstractBeanSelectionProvider.class:2.3.16]
at org.apache.struts2.config.AbstractBeanSelectionProvider.alias(AbstractBeanSelectionProvider.java:45) ~[AbstractBeanSelectionProvider.class:2.3.16]
at org.apache.struts2.config.DefaultBeanSelectionProvider.register(DefaultBeanSelectionProvider.java:340) ~[DefaultBeanSelectionProvider.class:2.3.16]
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:234) ~[DefaultConfiguration.class:2.3.16]
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) ~[ConfigurationManager.class:2.3.16]
... 20 common frames omitted
joined on
November 09,2013
Replied on October 08,2015

You are missing struts2-spring-plugin jar.

Use gradle as 

compile 'org.apache.struts:struts2-spring-plugin:2.5-BETA2'

and maven as

<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-spring-plugin</artifactId>
<version>2.5-BETA2</version>
</dependency>


Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us