|
|
|
base7691
|
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 |
||||||||||||||||
|
mraible
|
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 <[hidden email]> 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: [hidden email] > For additional commands, e-mail: [hidden email] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
qding
|
Appfuse 1.9.4/DB2/JSF Ant task setup-db and db-load work fine with DB2 database. However, when I try to do db-export, I got the error org.dbunit.dataset.DataSetException: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL 0204N "CWR.ALTOBJ_INFO" is an undefined name. SQLSTATE=42704 "CWR" is the schema name. But "ALTOBJ_INFO" is not part of the application tables. It seems that dbunit tried to export data from system tables. How do I only export the data from the application tables? Thanks. QD --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
mraible
|
You can modify the Ant task in build.xml to exclude certain table
names - or to only include certain names. Matt On 12/10/07, Ding, Qin <[hidden email]> wrote: > > > Appfuse 1.9.4/DB2/JSF > > Ant task setup-db and db-load work fine with DB2 database. However, > when I try to do db-export, I got the error > > org.dbunit.dataset.DataSetException: COM.ibm.db2.jdbc.DB2Exception: > [IBM][CLI Driver][DB2/NT] SQL > 0204N "CWR.ALTOBJ_INFO" is an undefined name. SQLSTATE=42704 > > "CWR" is the schema name. But "ALTOBJ_INFO" is not part of the > application tables. It seems that dbunit tried to export data from > system tables. How do I only export the data from the application > tables? > > Thanks. > > QD > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
Stephiems
|
In reply to this post
by mraible
Was this ever reported or fixed? I'm also getting this error, but I searched JIRA and couldn't find anything matching.
If I put the definitions in applicationContext-resources.xml it works fine, but not in applicationContext.xml. I guess it doesn't matter too much, but it would be nice to put it in applicationContext.xml because it keeps it cleaner and more seperated. Cheers, Steph
|
||||||||||||||||
|
base7691
|
I would create an issue in JIRA but I could not get the permission to do that till now.
After logging in in JIRA I have no possibility to create an new issue. Wolfgang
|
||||||||||||||||
|
Rene Guenther
|
I had this problem too. Sometimes logging out and logging in again gives you
finally the permission to create issue. René -----Ursprüngliche Nachricht----- Von: base7691 [mailto:[hidden email]] Gesendet: Freitag, 14. Dezember 2007 08:52 An: [hidden email] Betreff: Re: [appfuse-user] AppFuse 2.0.1 - Error while testing the tutorial-jpa module from appfuse-demos I would create an issue in JIRA but I could not get the permission to do that till now. After logging in in JIRA I have no possibility to create an new issue. Wolfgang Stephiems wrote: > > Was this ever reported or fixed? I'm also getting this error, but I > searched JIRA and couldn't find anything matching. > > If I put the definitions in applicationContext-resources.xml it works > fine, but not in applicationContext.xml. I guess it doesn't matter too > much, but it would be nice to put it in applicationContext.xml because it > keeps it cleaner and more seperated. > > Cheers, > Steph > > > mraible wrote: >> >> 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 <[hidden email]> 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: >>> odule-from-appfuse-demos-tp14254631s2369p14254631.html >>> Sent from the AppFuse - User mailing list archive at Nabble.com. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [hidden email] >>> For additional commands, e-mail: [hidden email] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [hidden email] >> For additional commands, e-mail: [hidden email] >> >> >> > > -- View this message in context: http://www.nabble.com/AppFuse-2.0.1---Error-while-testing-the-tutorial-jpa-m odule-from-appfuse-demos-tp14254631s2369p14331469.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
Aakhunaten
|
I was trying to upgrade all our projects that run on AppFuse 2.0 final to 2.0.1. And all the tests fail with the 'UnsatisfiedDependencyException'. If the temporary fix is to move code to applicationContext-resources.xml, then I would rather wait until the next update get in.
Currently even the quickstart/tutorial on the website will not work. :( Aakhunaten
|
||||||||||||||||
|
mraible
|
I've entered an issue for this in JIRA:
http://issues.appfuse.org/browse/APF-998 Matt On Jan 7, 2008, at 3:02 AM, Aakhunaten wrote: > > I was trying to upgrade all our projects that run on AppFuse 2.0 > final to > 2.0.1. And all the tests fail with the > 'UnsatisfiedDependencyException'. If > the temporary fix is to move code to applicationContext- > resources.xml, then > I would rather wait until the next update get in. > > Currently even the quickstart/tutorial on the website will not > work. :( > > Aakhunaten > > > > Rene Guenther wrote: >> >> I had this problem too. Sometimes logging out and logging in again >> gives >> you >> finally the permission to create issue. >> >> René >> >> -----Ursprüngliche Nachricht----- >> Von: base7691 [mailto:[hidden email]] >> Gesendet: Freitag, 14. Dezember 2007 08:52 >> An: [hidden email] >> Betreff: Re: [appfuse-user] AppFuse 2.0.1 - Error while testing the >> tutorial-jpa module from appfuse-demos >> >> >> I would create an issue in JIRA but I could not get the permission >> to do >> that >> till now. >> After logging in in JIRA I have no possibility to create an new >> issue. >> >> Wolfgang >> >> Stephiems wrote: >>> >>> Was this ever reported or fixed? I'm also getting this error, but I >>> searched JIRA and couldn't find anything matching. >>> >>> If I put the definitions in applicationContext-resources.xml it >>> works >>> fine, but not in applicationContext.xml. I guess it doesn't >>> matter too >>> much, but it would be nice to put it in applicationContext.xml >>> because it >>> keeps it cleaner and more seperated. >>> >>> Cheers, >>> Steph >>> >>> >>> mraible wrote: >>>> >>>> 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 <[hidden email]> 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-m >> odule-from-appfuse-demos-tp14254631s2369p14254631.html >>>>> Sent from the AppFuse - User mailing list archive at Nabble.com. >>>>> >>>>> ------------------------------------------------------------------ >>>>> --- >>>>> To unsubscribe, e-mail: [hidden email] >>>>> For additional commands, e-mail: [hidden email] >>>>> >>>>> >>>> >>>> ------------------------------------------------------------------- >>>> -- >>>> To unsubscribe, e-mail: [hidden email] >>>> For additional commands, e-mail: [hidden email] >>>> >>>> >>>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/AppFuse-2.0.1---Error-while-testing-the- >> tutorial-jpa-m >> odule-from-appfuse-demos-tp14254631s2369p14331469.html >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [hidden email] >> For additional commands, e-mail: [hidden email] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [hidden email] >> For additional commands, e-mail: [hidden email] >> >> >> > > -- > View this message in context: http://www.nabble.com/AppFuse-2.0.1--- > Error-while-testing-the-tutorial-jpa-module-from-appfuse-demos- > tp14254631s2369p14661762.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
Aakhunaten
|
Matt, this also happens when using Hibernate.
Aakhunaten
|
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |