wes is correct the only caveat is cglib intercepts publicly declared methods (not private or protected declared methods) http://static.springframework.org/spring/docs/2.5.x/reference/beans.html Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: Re: [S2] Convention plugin + Spring > From: wesw@wantii.com > To: user@struts.apache.org > Date: Fri, 2 Jan 2009 18:24:04 -0500 > > On Sat, 2009-01-03 at 00:15 +0100, Lukasz Lenart wrote: > > 2009/1/2 Musachy Barroso : > > > 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 > > > > > class="pl.org.lenart.ems.managers.impl.EmployeeManagerImpl"> > > > > > > > > > class="org.springframework.aop.framework.ProxyFactoryBean"> > > > value="pl.org.lenart.ems.managers.EmployeeManager"/> > > > > > > > > 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... > > > > Lukasz, it may be unrelated, but I vaguely remember having a similar > issue a while back and switching to cglib based proxies because JDK > interface proxies didn't seem to cut it. IIRC, all I had to do was add > cglib to the classpath and add proxy-target-class="true" to the > > I have a sample app up here - > http://code.google.com/p/struts2inpractice/source/browse/#svn/trunk/ch02ex01 > > It may be different than what your doing. None of the apps up there use > AOP with conventions (yet!). > > -Wes > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > _________________________________________________________________ Life on your PC is safer, easier, and more enjoyable with Windows Vista®. http://clk.atdmt.com/MRT/go/127032870/direct/01/