Look at the exception:
No qualifying bean of type [edu.java.spring.ws.dao.UserDao] found for dependency
This means that there’s no bean available to fulfill that dependency. Yes, you have an implementation of the interface, but you haven’t created a bean for that implementation. You have two options:
- Annotate
UserDaoImplwith@Componentor@Repository, and let the component scan do the work for you, exactly as you have done withUserService. - Add the bean manually to your xml file, the same you have done with
UserBoImpl.
Remember that if you create the bean explicitly you need to put the definition before the component scan. In this case the order is important.