В том числе hibernate-validator нарушает существующую конфигурацию hibernate
Я пишу Java-модуль, в котором я использовал Hibernate валидатор. Модуль отлично работает сам по себе.
Однако, когда он включен как часть родительского проекта, который использует hibernate для стандартного сопоставления сущностей в качестве ORM, родительский модуль выходит из строя из-за того, что не может установить фабрику проверки (и, следовательно, не может установить фабрику сеанса).
сообщение об исключении "Ошибка вызова метода init; вложенное исключение - org.hibernate.HibernateException: невозможно получить фабрику проверки компонентов по умолчанию"
-Pulkit
РЕДАКТИРОВАТЬ: Hibernate-валидатор: 4.3.1. Окончательный Hibernate-ядро: 3.6.5
Трассировки стека:
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'messageSourceServiceTarget' defined in class
path resource [applicationContext-service.xml]: Cannot resolve
reference to bean 'mutableResourceBundleMessageSource' while setting
bean property 'activeMessageSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'mutableResourceBundleMessageSource' defined
in class path resource [applicationContext-service.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor#0'
defined in class path resource [applicationContext-service.xml]:
Cannot resolve reference to bean 'transactionInterceptor' while
setting bean property 'transactionInterceptor'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'transactionInterceptor' defined in class path
resource [applicationContext-service.xml]: Cannot resolve reference to
bean 'transactionManager' while setting bean property
'transactionManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'transactionManager' defined in class path
resource [applicationContext-service.xml]: Cannot resolve reference to
bean 'sessionFactory' while setting bean property 'sessionFactory';
nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'sessionFactory' defined in class path
resource [applicationContext-service.xml]: Invocation of init method
failed; nested exception is org.hibernate.HibernateException: Unable
to get the default Bean Validation factory