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 testing part of Hibernate dao
using Person example.
The part of the tutorial that is about creating a custom dao it involves
e.g. extending GenericHibernateDao and define the personDao as depending
on
Generic classes which don't makes sense since it is about to create a
custom
dao.

Could someone please write an ordered list of how temporary fixing the
above
issues.


1. Copy the attached file to your core/src/test/resources directory.
2. Copy web/src/main/resources/mail.properties to core/src/test/resources.

Let me know if you get any errors after making this change.

Matt

Matt Raible-3 wrote:
>
> 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)  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#a8901509
>> 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
>
>

--
View this message in context:
http://www.nabble.com/Appfuse-2-tutorial-for-DaoTest-tf3205568s2369.html#a8903741
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
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
    
    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">
            <list>
                <value>classpath:jdbc.properties</value>
                <value>classpath:mail.properties</value>
            </list>
        </property>
    </bean>

    <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
        <property name="driverClassName" value="${jdbc.driverClassName}"/>
        <property name="url" value="${jdbc.url}"/>
        <property name="username" value="${jdbc.username}"/>
        <property name="password" value="${jdbc.password}"/>
    </bean>
</beans>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to