cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CXF-6706) Bean validation seems to not be working in OSGi
Date Mon, 14 Dec 2015 16:28:46 GMT


ASF GitHub Bot commented on CXF-6706:

Github user benson-basis commented on the pull request:
    I am entirely with you for 3.2.0. For 3.1.5 I just wanted to patch things
    into working condition. What do you think of my smaller maneuver in
    On Dec 14, 2015 6:09 PM, "Christian Schneider" <>
    > Ah yes I see there are two wrap entries ... still I think this does not
    > belong into cxf.
    > I am especially concerned with the tight binding of the cxf validation to
    > hibernate validator. I think CXF should be able to work with any validation
    > provider and let the user choose which to install.
    > How about adding a correct hibernate 5 feature without wrap into the
    > upcoming karaf 4.0.4?
    > I will take care of providing a fix to hibernate so their own feature is
    > better in the next release.
    > I propose we only have the cxf-bean-validation feature in CXF. We can load
    > the validation api using dependency=true. This way it should nicely
    > interoperate with the hibernate validator feature.
    > —
    > Reply to this email directly or view it on GitHub
    > <>.

> Bean validation seems to not be working in OSGi
> -----------------------------------------------
>                 Key: CXF-6706
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.1.4, 3.2.0
>            Reporter: Benson Margulies
>            Assignee: Benson Margulies
> Using Karaf 4.0.2, 
> if you take this repo:
> and checkout the use-cxf-support branch, it will build you a Karaf assembly that, when
you poke the service (http://localhost:8181/cxf/validate)
> will yield the following backtrace. This assumes that you are up to date with my fix
to cxf-6705 which is on master and the 3.1.x branch.
> {noformat}
> javax.validation.ValidationException: Unable to find a default provider
> 	at javax.validation.Validation$GenericBootstrapImpl.configure(
> 	at javax.validation.Validation.buildDefaultValidatorFactory(
> 	at org.apache.cxf.validation.BeanValidationProvider.<init>(
> 	at com.basistech.ts.impl.TrivialService.validate(
> {noformat}

This message was sent by Atlassian JIRA

View raw message