[wildfly-dev] ConstraintDeclarationException on deployment

Mike Hostetler hostetlerm at gmail.com
Wed Mar 26 11:16:59 EDT 2014


I'm probably one of the many that is moving away from Glassfish to WildFly.
I have done some trivial changes but now Weld is giving validation failures
like the following on some of our EJB3 beans:

javax.validation.ConstraintDeclarationException: HV000151: A method
overriding another method must not alter the parameter constraint
configuration

The worse thing is that only see one at a time: so I fix one, do the
build-redeploy dance, and then see the next one. Most of the problems is
that in the overriding class we use javax.validation.constraints.NotNull
annotation on the parameter, which is what Weld doesn't seem to like.
Obviously these worked in Glassfish.

My first thought is: how can I shut off Weld validation? If that is not
possible (which I'm willing to accept), then how can I see these validation
errors all at once instead of one at a time during deployment?

Thanks
-- 
Mike Hostetler
http://mike.hostetlerhome.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20140326/c102de8b/attachment.html 


More information about the wildfly-dev mailing list