I don't know why this is happening - all the tests pass in Bamboo. I
was able to reproduce your problem, but I don't know what's causing it
or how to fix it. Can you please enter an issue in JIRA?

http://issues.appfuse.org/browse/APF

Thanks,

Matt

On 12/10/07, base7691 <[EMAIL PROTECTED]> wrote:
>
> I tried the tutorial-jpa module from appfuse-demos. If you run mvn test
> -Dtest=PersonDaoTest you get the following error message:
>
> -------------------------------------------------------------------------------
> Test set: org.appfuse.tutorial.dao.PersonDaoTest
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.444 sec
> <<< FAILURE!
> testFindPersonByLastName(org.appfuse.tutorial.dao.PersonDaoTest) Time
> elapsed: 0.401 sec <<<
> ERROR!
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean
> with name 'org.appfuse.tutorial.dao.PersonDaoTest': Unsatisfied dependency
> expressed
> through bean property 'personDao': Set this property value or disable
> dependency
> checking for this bean.
>
> I only can avoid it if I move the <bean id="personDao"
> class="org.appfuse.tutorial.dao.jpa.PersonDaoJpa"/> entry from
> src/main/webapp/WEB-INF/applicationContext.xml to
> src/main/resources/applicationContext-resources.xml.
>
> If this is the only way to do it then it would be an error in your tutorial,
> because you mention explicitely that
> src/main/webapp/WEB-INF/applicationContext.xml is the prefered location if
> you have a base archetype.
>
> Any ideas?
> Tanks
>
> --
> View this message in context: 
> http://www.nabble.com/AppFuse-2.0.1---Error-while-testing-the-tutorial-jpa-module-from-appfuse-demos-tp14254631s2369p14254631.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to