it is a standalone application to
test Ioc feature of spring, but I always got the following exception:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerService': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.cybelink.ioc.DataSource com.cybelink.ioc.CustomerService.dataSource; nested exception is java.lang.NoClassDefFoundError: org/apache/velocity/exception/VelocityException
the application has 3 class as follow (the customer class is not related and so not paste the source here):
Interface DataSource
Implementation class of interface DataSource
the applicationContext.xml is as follow