Right, in that case please try JAXRSBeanvalidationInvoker, or, may be even better, try to add this line in your exception mapper:

JAXRSUtils.getCurrentMessage().put(List.class, new MessageContentsList(newResponse));


You will be able to remove this line once CXF-7091 gets resolved

Thanks, Sergey
On 17/10/16 15:07, tomstark wrote:
Tried the BeanValidationInInterceptor and BeanValidationOutInterceptor with
the the Out interceptor configured like this:

BeanValidationOutInterceptor bean = new BeanValidationOutInterceptor();
bean.setProvider(new BeanValidationProvider(new
HibernateBeanValidationProviderResolver()));
bean.setEnforceOnlyBeanConstraints(true);

Unfortunately, the Out interceptor tried to validate the "ResponseImpl", not
the entity contained within the response.  Anything I can to change that?

Thanks,

Tom



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Using-JAXRSBeanValidationOutInterceptor-causes-Fault-when-validation-of-an-object-fails-tp5773878p5773958.html
Sent from the cxf-user mailing list archive at Nabble.com.



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Reply via email to