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:
<dependency>
<groupId>org.appfuse</groupId>
<artifactId>appfuse-service</artifactId>
<version>2.0-m4-SNAPSHOT</version>
</dependency>
I guess you have the m3 snapshot?
And Matt wrote this to me in an email:
1. Moved applicationContext.xml from web module to core/src/main/resources.
2. Changed applicationContext-resources.xml to use a DriverManagerDataSource
instead of DBCP - I believe I sent this to the mailing list.
3. Changed PersonDaoTest to load the additional applicationContext.xml file
from src/main/resources.
I run a spring modular, that's why I have a core module.
Tuncay A. 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) Time elapsed: 0.579
> sec <<< ERROR!
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'sessionFactory' defined in URL
> [jar:file:/E:/Workspace/Repositories/m2/org/appfuse/appfuse-hibernate/2.0-m4-SNAPSHOT/appfuse-hibernate-2.0-m4-SNAPSHOT.jar!/applicationContext-dao.xml]:
> Cannot resolve reference to bean 'dataSource' while setting bean property
> 'dataSource'; nested exception is
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'dataSource' is defined
> Caused by:
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'dataSource' is defined
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:340)
>
> Thx.
>
--
View this message in context:
http://www.nabble.com/Appfuse-2-tutorial-for-DaoTest-tf3205568s2369.html#a8902235
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]