cannot locate the chosen objectfactory
--------------------------------------
Key: WW-3167
URL: https://issues.apache.org/struts/browse/WW-3167
Project: Struts 2
Issue Type: Bug
Affects Versions: 2.0.8
Environment: Tomcat 5.0.5,Eclispse: Project with struts2,spring and
hibernate
Reporter: Vineeth T Shetty
Cannot locate the chosen ObjectFactory implementation: spring - [unknown
location]
at
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:223)
at
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:194)
at
org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvider.java:153)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:131)
Above error occurs while startring tomcat server.
Bellow are strurs.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.objectFactory" value="spring" />
<constant name="struts.devMode" value="true" />
<package name="person" extends="struts-default">
<action name="list" method="execute" class="personAction">
<result>pages/list.jsp</result>
<result name="input">pages/list.jsp</result>
</action>
<action name="remove" class="personAction" method="remove">
<result>pages/list.jsp</result>
<result name="input">pages/list.jsp</result>
</action>
<action name="save" class="personAction" method="save">
<result>pages/list.jsp</result>
<result name="input">pages/list.jsp</result>
</action>
</package>
</struts>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.