servicemix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bengt Rodehav <be...@rodehav.com>
Subject Re: org.apache.servicemix.bundles.hibernate-validator: Unable to find a default provider
Date Fri, 19 Nov 2010 07:44:05 GMT
I've only used the hibernate validator (default) so this is a new area to
me.

Out of curiosity, how would you compare Apache Bean Validation with
Hibernate validator - is it good?

/Bengt

2010/11/18 jdart <jdart@vmware.com>

>
> I think this still may be broken in the OSGi environment in the case where
> you are configuring for a specific provider class (in my case I am using
> Apache Bean Validation). I am getting an exception at
>
>
> javax.validation.Validation$ProviderSpecificBootstrapImpl.configure(Validation.java:223)
>
> When I step through the code I see that it is calling the default
> validation
> provider resolver to get the list of validation providers - and neither the
> Osgi loading mechanism nor the services file mechanism is returning a
> provider.
>
> But it does not make sense to me that it is calling the resolver at all
> because in this part of the code it already has the specific validator
> class
> instance, so all it should have to do is instantiate it.
>
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/org-apache-servicemix-bundles-hibernate-validator-Unable-to-find-a-default-provider-tp3205442p3271630.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message