[ 
https://issues.apache.org/struts/browse/WW-3167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dave Newton closed WW-3167.
---------------------------

    Resolution: Not A Problem

Most likely you're not including the Spring plugin.

Things like this are best asked on the struts-user mailing list before filing a 
bug, since Spring integration has been working for a long time (although 
admittedly you're using a rather old version of S2--any particular reason 
you're not using a recent version?)

If this is an actual bug, when you re-open it please include all the 
information necessary to try to track it down, like the libraries you're 
deploying, etc. We're not in front of your machine--it's quicker and more 
efficient to supply the information up front than for us to ask a potentially 
lengthy series of questions.

> 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.

Reply via email to