users@jersey.java.net

[Jersey] Enabling bean validation

From: Oliver B. Fischer <mailsink_at_swe-blog.net>
Date: Wed, 23 Apr 2014 08:50:55 +0200

Hi,

I try to enable bean validation i a test application with Jersey 2.7. I
added org.glassfish.jersey.ext:jersey-bean-validation as dependency and
called

        register(ValidationFeature.class);

But if I call

         isEnabled(ValidationFeature.class);

it returns false.

So what did I miss? According to the documentation Jersey will enable
bean validation if it finds the right dependencies in the classpath.

BR, Oliver