Re: [S2] Convention plugin + Spring

2009-01-04 Thread Lukasz Lenart
Hi, I think I found the best solution, I can use short actions names and standard JDK proxies, the only thing is to set autowire-candidate attribute to false for real managers implementation, like below: Regards -- Lukasz http://www.lenart.org.

Re: [S2] Convention plugin + Spring

2009-01-03 Thread Musachy Barroso
I added a log statement to xwork, so the UnsatisfiedDependencyException doesn't go unnoticed. musachy On Sat, Jan 3, 2009 at 11:51 AM, Wes Wannemacher wrote: > On Sat, 2009-01-03 at 16:02 +0100, Lukasz Lenart wrote: >> 2009/1/3 Wes Wannemacher : > [snip] >> [... cut ...] >> >> This GenericHibern

Re: [S2] Convention plugin + Spring

2009-01-03 Thread Wes Wannemacher
On Sat, 2009-01-03 at 16:02 +0100, Lukasz Lenart wrote: > 2009/1/3 Wes Wannemacher : [snip] > [... cut ...] > > This GenericHibernateDaoImpl has non-default constructor and use > generics, maybe that's the problem. Anyway I found other solution, > simplest, use full action class name for bean name

Re: [S2] Convention plugin + Spring

2009-01-03 Thread Lukasz Lenart
2009/1/3 Wes Wannemacher : > 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"

RE: [S2] Convention plugin + Spring

2009-01-02 Thread Martin Gainty
. > Subject: Re: [S2] Convention plugin + Spring > From: w...@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 "f

Re: [S2] Convention plugin + Spring

2009-01-02 Thread Wes Wannemacher
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 > > wr

Re: [S2] Convention plugin + Spring

2009-01-02 Thread Lukasz Lenart
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

Re: [S2] Convention plugin + Spring

2009-01-02 Thread 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?) musachy On Fri, Jan 2, 2009 at 5:28

Re: [S2] Convention plugin + Spring

2009-01-02 Thread Lukasz Lenart
Spring config: with JUnit test there was no problem Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts

Re: [S2] Convention plugin + Spring

2009-01-02 Thread Lukasz Lenart
The action has non-default constructor, stack trace below Struts Problem Report Struts has detected an unhandled exception: Messages: 1. pl.org.lenart.ems.web.actions.EmployeeAction 2. Unable to intantiate Action! File: java/lang/Class.java Line number:340 Stacktraces Unable

Re: [S2] Convention plugin + Spring

2009-01-02 Thread Musachy Barroso
stacktrace and other config information ;) musachy On Fri, Jan 2, 2009 at 5:20 PM, Musachy Barroso wrote: > can you post the full stacktrace? The action is instantiated on the > request, which is way after Convention has done its job. > > musachy > > On Fri, Jan 2, 2009 at 5:14 PM, Lukasz Lenart

Re: [S2] Convention plugin + Spring

2009-01-02 Thread Musachy Barroso
can you post the full stacktrace? The action is instantiated on the request, which is way after Convention has done its job. musachy On Fri, Jan 2, 2009 at 5:14 PM, Lukasz Lenart wrote: > Hi, > > How to use Convention plugin (2.1.5) with Spring defined actions? I'm > getting exception: Unable to

[S2] Convention plugin + Spring

2009-01-02 Thread Lukasz Lenart
Hi, How to use Convention plugin (2.1.5) with Spring defined actions? I'm getting exception: Unable to intantiate Action! Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org