Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-20 Thread Matt Raible
This could definitely be a bug. Looking in BasePageTestCase and web.xml, there's no references to classpath*:/applicationContext.xml. http://static.appfuse.org/appfuse-jsf/xref/org/appfuse/webapp/action/BasePageTestCase.html Can you please enter a bug in JIRA for this? Thanks, Matt On 2/20/0

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-20 Thread Tuncay A.
I tried without result. Seems like web module doesn't know about applicationContext.xml from core PersonListTest: testSearch(net.company.webapp.bean.PersonListTest) Time elapsed: 0.359 sec <<< ERROR! org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'personManager

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-19 Thread Matt Raible
If you run "mvn install" from the "core" module - this should fix this problem. Matt On 2/15/07, Tuncay A. <[EMAIL PROTECTED]> wrote: Using jsf-modular and having applicationContext.xml inside core/src/main/resources/ - it doesn't work. BasePageTestCase doesn't know about the applicationConte

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-15 Thread Tuncay A.
Using jsf-modular and having applicationContext.xml inside core/src/main/resources/ - it doesn't work. BasePageTestCase doesn't know about the applicationContext.xml. I made modification to PersonListTest to include applicationContext.xml from classpath like other *.xml files the BasePageTestCas

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-15 Thread Matt Raible
Do you have a personManager bean definition in src/main/webapp/WEB-INF/applicationContext.xml? If you're using a modular archetype, this should be in core/src/main/resources/applicationContext.xml. Matt On 2/15/07, Tuncay A. <[EMAIL PROTECTED]> wrote: Hi, Using M4-snapshot and fixing problem

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-15 Thread Tuncay A.
Hi, Using M4-snapshot and fixing problems with dao and manager. Now, I get following error running PersonListTest for generic dao and manager. org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'personManager' is defined at org.springframework.beans.factory.su

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-12 Thread Tuncay A.
Ok. Matt Raible-3 wrote: > > I agree - it would be nice if it worked 100% with the IDEs. The good > news is it works much better than 1.x did (mainly due to XDoclet > issues). I think it *can* work, it's just a matter of figuring out > the configuration. You could probably setup an external

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-11 Thread Matt Raible
I agree - it would be nice if it worked 100% with the IDEs. The good news is it works much better than 1.x did (mainly due to XDoclet issues). I think it *can* work, it's just a matter of figuring out the configuration. You could probably setup an external tool configuration to launch "mvn jett

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-11 Thread Tuncay A.
Thx, will give a try. However, it is very very painful for lot of developers to work with AppFuse using Maven instead of it's favorite IDE. Soon, I hope AppFuse 2.0 could 100% working with IDEs and a detail documentation for it could be written. This could be very helpful for a lot and more pl

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-11 Thread Matt Raible
On 2/10/07, Tuncay A. <[EMAIL PROTECTED]> wrote: Thx Guys!, It works now :-) The way it works: 1. Checkout a fresh archetype jsf-moduler for m4-SNAPSHOT. 2. Moved applicationContext.xml from core web module to core/src/main/resources. 3. Created an applicationContext-resources.xml inside core

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-10 Thread Tuncay A.
Thx Guys!, It works now :-) The way it works: 1. Checkout a fresh archetype jsf-moduler for m4-SNAPSHOT. 2. Moved applicationContext.xml from core web module to core/src/main/resources. 3. Created an applicationContext-resources.xml inside core/src/test/resources/ and changed to use a DriverMan

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-10 Thread Matt Raible
On 2/10/07, Tuncay A. <[EMAIL PROTECTED]> wrote: 1. I made a new fresh checkout of achetype m3 and got the problem. Then in super-pom modified the version of appfuse to use m4-SNAPSHOT and still get the prob. 2. Another issue is the tutorial about the testing part of Hibernate dao using Person

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-10 Thread Matt Raible
On 2/10/07, Tuncay A. <[EMAIL PROTECTED]> wrote: 1. I made a new fresh checkout of achetype m3 and got the problem. Then in super-pom modified the version of appfuse to use m4-SNAPSHOT and still get the prob. You're using a modular project correct? 2. Another issue is the tutorial about the

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-10 Thread Tuncay A.
1. I made a new fresh checkout of achetype m3 and got the problem. Then in super-pom modified the version of appfuse to use m4-SNAPSHOT and still get the prob. 2. Another issue is the tutorial about the testing part of Hibernate dao using Person example. The part of the tutorial that is about c

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-10 Thread Matt Raible
Did you start with m3 or are you trying to upgrade from m2? Matt On 2/10/07, Tuncay A. <[EMAIL PROTECTED]> wrote: Hi, I tried to run Person dao tutorial for appfuse 2. I have been using m3 and m4 without result: I get following error: TestFindPersonByLastName(net.jsync.dao.PersonDaoTest)

Re: [appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-10 Thread viggo
This issue is related to this one: http://www.nabble.com/Error-creating-bean-with-name-%27sessionFactory%22-tf3196130s2369.html I think, if I'm not wrong, that you have to update this dependency in pom.xml: org.appfuse appfuse-service 2.0-m4-SNAPSHOT

[appfuse-user] Appfuse 2 tutorial for DaoTest

2007-02-10 Thread Tuncay A.
Hi, I tried to run Person dao tutorial for appfuse 2. I have been using m3 and m4 without result: I get following error: TestFindPersonByLastName(net.jsync.dao.PersonDaoTest) Time elapsed: 0.579 sec <<< ERROR! org.springframework.beans.factory.BeanCreationException: Error creating bean with