You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ádamo Azambuja <ad...@gmail.com> on 2007/10/18 18:51:08 UTC

Struts 2 j4 and spring Error

When i use this configuration on my web.xml:
<constant name="struts.objectFactory" value="
org.apache.struts2.spring.StrutsSpringObjectFactory" />
i have the struts2-spring-plugin-2.0.9.jar in my classpath.

i have this error:
14:46:50,246  INFO XmlConfigurationProvider:140 - Parsing configuration file
[struts-plugin.xml]
StandardContext[/strutsBlank]Exception starting filter struts2
Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:
org.apache.struts2.spring.StrutsSpringObjectFactory - bean -
jar:file:/C:/projetos/struts2-blank-2.0.9/WebContent/WEB-INF/lib/struts2-
spring-plugin-2.0.9.jar!/struts-plugin.xml:8:132
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(
XmlConfigurationProvider.java:208)
    at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(
StrutsXmlConfigurationProvider.java:101)