I work with JBoss EAP 6.2 and have the specific problem. I have 2 modules - core and app; there are some RESTful-services in both of them. I work with Resteasy 2.3.7.Final,validation-api 1.0.0.GA and hibernate-validator 4.3.1.Final, which has provided scope. All REST-methods looks like:
@Path("/modify") @ValidateRequest @Consumes("application/json") @Produces("application/json") public Response send(@Valid E data) { //some business logic } Rest-validation works fine; but bean validation behaves very strange. If class with annotation(for example) @NotNull and rest-method ara located in a single module - everything OK, but if they are in different modules - validation works from time to time. I try debug so deeper as I can, but I haven't success :( BeanMetaDataManager's constraintValidatorDefinitions sometimes contains my annotations, and sometimes doesn't contain them for no apparent reason. Any ideas?
|