cxf-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CXF-6706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15056103#comment-15056103
] 

ASF GitHub Bot commented on CXF-6706:
-------------------------------------

Github user benson-basis commented on the pull request:

    https://github.com/apache/cxf/pull/102#issuecomment-164466569
  
    I didn't know. I assumed that the SM stuff was there for a reason. That
    will be my next port of call.
    
    
    On Mon, Dec 14, 2015 at 10:21 AM, Christian Schneider <
    notifications@github.com> wrote:
    
    > Why do you use the hibernate bundle from servicemix?
    > It looks like hibernate already provides a validator bundle:
    >
    > http://search.maven.org/#artifactdetails|org.hibernate|hibernate-validator-osgi|5.2.2.Final|pom
    >
    > —
    > Reply to this email directly or view it on GitHub
    > <https://github.com/apache/cxf/pull/102#issuecomment-164464862>.
    >



> Bean validation seems to not be working in OSGi
> -----------------------------------------------
>
>                 Key: CXF-6706
>                 URL: https://issues.apache.org/jira/browse/CXF-6706
>             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:
> git@github.com:benson-basis/cxf-karaf-validation-tc.git
> 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(Validation.java:264)
> 	at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111)
> 	at org.apache.cxf.validation.BeanValidationProvider.<init>(BeanValidationProvider.java:45)
> 	at com.basistech.ts.impl.TrivialService.validate(TrivialService.java:50)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message