org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clothesService' defined in file [D:\apache-tomcat-7.0.30\apache-tomcat-7.0.30\webapps\product\WEB-INF\classes\com\clothes\service\impl\ClothesServiceImpl.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'commonDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.core.common.dao.impl.GenericBaseCommonDao.sessionFactory; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.hibernate.SessionFactory] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=sessionFactory)}
org.springframework.beans.factory.BeanCreationE