OK!  Sorry for typing too soon without thoroughly going through the tutorial 
again.  I have to expose the personDao bean because I am following the 
tutorial.  I modified the applicationContext.xml to do that and everything is 
working right.  I am still however is not getting the properties to work 
properly for the populate(Object) command.  I will be playing around with that 
to see if I can get it to work.

Thanks,
Doug

Doug Pham <[EMAIL PROTECTED]> wrote: Matt,
    I am almost there!  I just need to get through with the first cycle of 
testing :-)  OK!  From the "Persistence" and "Services" I got everything 
working and has written the PersonManagerImpl and changed the 
applicationContext.xml to have the new personManager as
    <bean id="personManager" 
class="mysite.webapp.service.impl.PersonManagerImpl">     
        <constructor-arg ref="personDao"/> 
    </bean>

All the tests had passed from that point.  When I ran the first 
PersonActionTest, I get the following error:

-------------------------------------------------------------------------------
Test set: mysite.webapp.action.PersonActionTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped:  0, Time elapsed: 3.687 sec <<< 
FAILURE!
testSearch(mysite.webapp.action.PersonActionTest)  Time elapsed: 3.656 sec  <<< 
ERROR!
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'personManager' defined in file 
[E:\appfuse2\base\target\test-classes\WEB-INF\applicationContext.xml]: Cannot 
resolve reference to bean 'personDao' while setting constructor argument; 
nested exception is 
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 
'personDao' is defined
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No 
bean named 'personDao' is defined
    at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:353)
    at 
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:916)
    at  
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:243)
.
.

The error I am assuming is due to some configuration in the previous steps.

Thanks,
Doug



        

---------------------------------
Ready for the edge of your seat?  Check out tonight's top picks on Yahoo! TV.   

       
---------------------------------
Need a vacation? Get great deals to amazing places on Yahoo! Travel. 

Reply via email to