[ https://issues.apache.org/jira/browse/CXF-6756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15115125#comment-15115125 ]
Sergey Beryozkin commented on CXF-6756: --------------------------------------- Please read CXF ValidationFeature documentation more carefully - though I guess it was not well highlighted, I made the information more visible and updated it a bit too: https://cwiki.apache.org/confluence/display/CXF20DOC/ValidationFeature > Support Bean Validation for JAX-RS : non-singleton objects > ---------------------------------------------------------- > > Key: CXF-6756 > URL: https://issues.apache.org/jira/browse/CXF-6756 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 3.1.4 > Environment: using CXF in a web application (war) within an ear > websphere 8.5.5 (full) > ear war class loader policy : module > war class loader setting : parent last > Reporter: Philippe Deslauriers > Priority: Critical > > I use the {{CXFNonSpringJaxrsServlet}} for initialization. > Bean validation is not working for classes registered using the > {{javax.ws.rs.core.Application getClasses()}} method. > It only works if I register my classes as singleton using the > {{javax.ws.rs.core.Application getSingletons()}} > Similar to CXF-5310 but I believe JAX-RS bean validation support is not > optionnal or conditionnal to how classes are registered. -- This message was sent by Atlassian JIRA (v6.3.4#6332)