fixed! thank you!

Justin

mraible wrote:
> 
> You should be able to add the getConfigLocations to your classes that
> need this - you'll be able to remove them in the next release. You
> could also copy the BasePageTestCase into your class and rename it to
> something like AbstractPageTestCase and then subclass it accordingly.
> 
> Matt
> 
> On 9/29/07, justin_wang <[EMAIL PROTECTED]> wrote:
>>
>> Thanks Matt, but which class should I add this code?
>>
>> Justin
>>
>>
>> mraible wrote:
>> >
>> > This is something we should probably fix. Can you please enter this as
>> > an issue in JIRA?
>> >
>> > http://issues.appfuse.org/browse/APF
>> >
>> > For most integration tests with Spring, we've remembered to set
>> > autowiring to use byName. However, it looks like I forgot it for JSF.
>> > You should be able to fix this in your code by adding the following
>> > method:
>> >
>> >     protected String[] getConfigLocations() {
>> >         setAutowireMode(AUTOWIRE_BY_NAME);
>> >         return super.getConfigLocations();
>> >     }
>> >
>> > Matt
>> >
>> > On 9/19/07, phamvubinh <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hi all,
>> >>
>> >> I'm using Appfuse with JSF framework and I got an error (below). I
>> think
>> >> I
>> >> should config some think about autowire, autowire-candidate, ... in my
>> >> applicationContext.xml file to figure it out but I don't know how. Can
>> >> you
>> >> give me some advices?
>> >>
>> >> ==================================================================
>> >>
>> >> Running com.giavaviet.app.webapp.action.PersonListTest
>> >> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.056
>> sec
>> >> <<< FAILURE!
>> >> testSearch(com.giavaviet.app.webapp.action.PersonListTest)  Time
>> elapsed:
>> >> 0.041 sec  <<< ERROR!
>> >> org.springframework.beans.factory.UnsatisfiedDependencyException:
>> Error
>> >> creating bean with name
>> 'com.giavaviet.app.webapp.action.PersonListTest':
>> >> Unsatisfied dependency expressed through bean property
>> 'personManager':
>> >> There are 3 beans of type [org.appfuse.service.GenericManager]
>> available
>> >> for
>> >> autowiring by type: [quanManager, phuongManager, personManager]. There
>> >> should have been exactly 1 to be able to autowire property
>> >> 'personManager'
>> >> of bean 'com.giavaviet.app.webapp.action.PersonListTest'. Consider
>> using
>> >> autowiring by name instead.
>> >>
>> >> ================================================================
>> >>
>> >> Thanks,
>> >> Binh Pham
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Have-problem-with-autowire-tf4484940s2369.html#a12789644
>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > http://raibledesigns.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Have-problem-with-autowire-tf4484940s2369.html#a12958979
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Have-problem-with-autowire-tf4484940s2369.html#a12962860
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to