1 Reply Latest reply on Apr 17, 2015 3:55 AM by Ashutosh kr

    camel-bean-validation issue

    A K Newbie

      Hi all,

       

      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:

      <dependency>

      <groupId>org.hibernate</groupId>

      <artifactId>hibernate-validator</artifactId>

      <version>5.1.3.Final</version>

      </dependency>

      <dependency>

      <groupId>javax.validation</groupId>

      <artifactId>validation-api</artifactId>

      <version>1.1.0.Final</version>

      </dependency>

      <dependency>

      <groupId>org.apache.camel</groupId>

      <artifactId>camel-bean-validator</artifactId>

      <version>2.14.0</version>

      </dependency>

       

      and my route is as follows:

       

      from uri="activemq:queue:payment"/>

      <unmarshal ref="paymentTransaction"/>

      <to uri="bean-validator://x?group=OptionalChecks"/>

       

      I am using blueprint to create the project. Please help me to resolve this issue.

       

      Thanks

       

      AK