What Camel version do you use? On Wed, Apr 19, 2017 at 2:27 PM, Thomas Weinschenk <[email protected]> wrote: > Hi, > > I tried to update the spring boot web service example to 1.5.2.RELEASE but > it fails when camel-swagger-java is in place. > > ... > Caused by: org.springframework.beans.BeanInstantiationException: Failed to > instantiate [javax.validation.Validator]: Factory method 'jsr303Validator' > threw exception; nested exception is java.lang.NoClassDefFoundError: Could > not initialize class > org.hibernate.validator.internal.engine.ConfigurationImpl > at > org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) > at > org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) > ... 38 more > Caused by: java.lang.NoClassDefFoundError: Could not initialize class > org.hibernate.validator.internal.engine.ConfigurationImpl > at > org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:33) > at > javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:276) > at > org.springframework.boot.validation.MessageInterpolatorFactory.getObject(MessageInterpolatorFactory.java:53) > ... > > If I exclude the camel-swagger-java dependency it works. > > It seems that camel-swagger-java includes some jsr303 validation that causes > the problem. > Spring boot uses the hibernate-validator 5.3.4.Final (JSR 349). > This might cause the failure but I am not an expert on Bean Validation. > > Any idea how to solve this issue? > > Regards, > Thomas > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Spring-Boot-1-5-fails-when-camel-swagger-java-in-place-tp5797920.html > Sent from the Camel - Users mailing list archive at Nabble.com.
-- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
