cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-6706) Bean validation seems to not be working in OSGi
Date Thu, 17 Dec 2015 19:12:46 GMT

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

Benson Margulies edited comment on CXF-6706 at 12/17/15 7:12 PM:
-----------------------------------------------------------------

Well, I'm sure you're all really bored of all this by now, but I hope you'll read this one.

5.2.2_Final does not have the problem. jboss-logging 3.3.0.Final is fine, the log4j2 dep is
optional. 

I will be making the changes to CXF to take advantage of all of this.




was (Author: bmargulies):
Well, I'm sure you're all really bored of all this by now, but I hope you'll read this one.

5.2.2_Final does not have the problem. 5.2.2_Final does have the dependency on log4j2 that
the Hibernate use of the wrap protocol sets out to fix. So, if we only had a repaired jboss
dependency that optionalized that dependency correctly, we'd be all set here. I'll open an
SM JIRA for this.


> 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
>             Fix For: 3.1.5, 3.2.0
>
>
> 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