<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)">Did what you suggested. Hope someone will help. <a href="http://stackoverflow.com/questions/21694596/resteasy-cdi-embedded-jetty-bean-validation-is-ignored">http://stackoverflow.com/questions/21694596/resteasy-cdi-embedded-jetty-bean-validation-is-ignored</a></div>
<div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)">Thanks.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Feb 11, 2014 at 4:57 AM, Hardy Ferentschik <span dir="ltr">&lt;<a href="mailto:hardy@hibernate.org" target="_blank">hardy@hibernate.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Abhijit,<br>
<br>
first off, this is the wrong mailing list to ask. This mailing list is for development of the Bean Validation specification.<br>
You seem to have a problem with the reference implementation of Hibernate Validator and/or its integration into other frameworks.<br>
<br>
You could try the hibernate-dev mailing list, but I think you are not providing yet enough information to get a helpful answer there either.<br>
<br>
I would try to include more context - add example code, log messages and potential stack traces. You could set the logging level<br>
to debug and see whether you get some more helpful information or you could even try to step through the code with a debugger to<br>
get a better understanding where things go wrong. Last but not least, I would then post to Stackoverflow to reach a broader audience.<br>
<br>
—Hardy<br>
<br>
<br>
On 11 Jan 2014, at 07:56, Abhijit Sarkar &lt;<a href="mailto:abhijit.sarcar@gmail.com">abhijit.sarcar@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt; I&#39;ve a Groovy project where I use RESTEasy with CDI (Weld) and deploy to embedded Jetty. What I can&#39;t seem to get working is bean validation. The documentation says that adding &#39;resteasy-validator-provider-11&#39; 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:<br>

&gt;<br>
&gt; plugins.validation.ValidatorContextResolver - Unable to find CDI supporting ValidatorFactory. Using default ValidatorFactory<br>
&gt;<br>
&gt; I tried registering Hibernate InjectingConstraintValidatorFactory in META-INF/validation.xml but it depends on a BeanManager being injected and blows up at runtime.<br>
&gt;<br>
&gt; What can I do to get this working?<br>
&gt;<br>
&gt; RESTEasy 3.0.6.Final<br>
&gt; Weld servlet 2.1.2.Final<br>
&gt; Hibernate validator 5.0.3.Final<br>
&gt; Jetty embedded 9.1.1.v20140108<br>
&gt;<br>
&gt; * Also asked on RESTEasy mailing list<br>
&gt;<br>
&gt; Regards,<br>
&gt; Abhijit<br>
&gt; _______________________________________________<br>
&gt; beanvalidation-dev mailing list<br>
&gt; <a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
<br>
</blockquote></div><br></div>