I am trying to run example for camel-bean-validation (Apache Camel: Bean Validation). Even after giving the hibernate validator jar in pom file, I keep getting below error:
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: bean-validator://x?group=OptionalChecks due to: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.
My pom file already has the following dependencies:
and my route is as follows:
I am using blueprint to create the project. Please help me to resolve this issue.
Default Hibernate ValidatorFactory is not OSGi-friendly. In order to successfully run the Hibernate Validator in the OSGi environment you need to use a custom ValidationProviderResolver explicitly returning the HibernateValidator instance.
please refer this link https://access.redhat.com/solutions/734273