Bootstrapping Hibernate fails if javax.validation API is on classpath but no provider

Description

Assume you have the javax.validation API on the classpath and try to bootstrap Hibernate as JPA provider without a validation provider on the classpath.

This causes an exception due to TypeSafeActivator not considering the configuration properties and propagating the Exception being thrown by the call to Validation.buildDefaultValidatorFactory() as HibernateException (in getValidatorFactory(…).

Environment

None

Status

Assignee

Steve Ebersole

Reporter

Oliver Gierke

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure