Hi Benson!

What version of OSGi imports do you have with Hibernate and which with BVal?

The bundle config in geronimo-validation-1.1 states

<Export-Package>javax.validation*;version=1.1</Export-Package>

which should be fine.

What API package did you use for your project? And what is done there?

I know that bval-1.1 gets used without problems in Camel which heavily relies 
on OSGi as well. 
Jean-Baptiste can provide more feedback on this. Probably we need to do some 
other trick to get the service lookup 

Do you have any sample project to share?


LieGrue,
strub


> Am 03.09.2015 um 21:08 schrieb Benson Margulies <[email protected]>:
> 
> WIth org.apache.bal.bundle version 1.1.0 in my Karaf container, I get:
> 
> Caused by: javax.validation.ValidationException: Unable to create a
> Configuration, because no Bean Validation provider could be found. Add
> a provider like Hibernate Validator (RI) to your classpath.
> at 
> javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:271)[44:javax.validation.api:1.1.0.Final]
> at 
> javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:110)[44:javax.validation.api:1.1.0.Final]
> at 
> com.basistech.ws.common.api.options.OptionsValidator.<clinit>(OptionsValidator.java:32)[18:com.basistech.ws.rosapi-common:1.5.0.v20150903070520]
> ... 47 more

Reply via email to