|
From: Abhijit S. <abh...@gm...> - 2014-02-12 00:22:27
|
Perhaps I didn't provide enough detail previously. The code can be found here https://github.com/abhijitsarkar/groovy/tree/master/movie-manager/movie-manager-web A log gist is here: https://gist.github.com/anonymous/8947319 I've tried everything under the sun without any success. Pls help. On Tue, Feb 11, 2014 at 1:13 AM, Abhijit Sarkar <abh...@gm...>wrote: > Hi, > I've a Groovy project where I use RESTEasy with CDI (Weld) and deploy to > embedded Jetty. What I can't seem to get working is bean validation. The > documentation says that adding 'resteasy-validator-provider-11' along with > hibernate validator dependencies (hibernate-validator, > hibernate-validator-cdi, javax.el-api, javax.el) is enough. But the bean > validation is simply ignored by RESTEasy. I curiously also get the > following message in the logs: > > plugins.validation.ValidatorContextResolver - Unable to find CDI > supporting ValidatorFactory. Using default ValidatorFactory > > I tried registering Hibernate InjectingConstraintValidatorFactory in > META-INF/validation.xml but it depends on a BeanManager being injected and > blows up at runtime. > > What can I do to get this working? > > RESTEasy 3.0.6.Final > Weld servlet 2.1.2.Final > Hibernate validator 5.0.3.Final > Jetty embedded 9.1.1.v20140108 > > Regards, > Abhijit > |