2009/1/2 Musachy Barroso <[email protected]>:
> That code is a "fallback" to create an instance using a default
> constructor, when a UnsatisfiedDependencyException is thrown from
> spring. Take a look at SpringObjectFactory line 162. Something is
> wrong in your spring mapping (the "employeeManager" bean maybe?)
I think I found the problem, I'm using AOP for transactions and have
such config for employeeManager
<bean id="employeeManagerTarget"
class="pl.org.lenart.ems.managers.impl.EmployeeManagerImpl">
<constructor-arg ref="employeeDao"/>
</bean>
<bean id="employeeManager"
class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces"
value="pl.org.lenart.ems.managers.EmployeeManager"/>
<property name="target" ref="employeeManagerTarget"/>
</bean>
and as I noticed, Struts2 right now use by default constructor base
autowiring and Spring found two matching params for EmployeeAction
constructor - employeeManager and employeeManagerTarget. Looks like
Spring issue...
Regards
--
Lukasz
http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]