<div dir="ltr">Thanks Hardy,<div><br></div><div>When I get through my hurdles (I just sent another one) I will make an example for bug-checking.</div><div><br></div><div>Actually, after I did 2 or 3, the constraint errors went away so it wasn&#39;t so bad. But it still may be an issue.</div>
<div><br></div><div>Thanks for getting back to me.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 26, 2014 at 3:04 PM, 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 Mike,<br>
<br>
a couple of more remarks on top of Emmanuel&rsquo;s.<br>
<br>
First of all, as Emmanuel is saying method and constructor validation should behave the same<br>
on Glassfish and Wildfly. The Bean Validation specification (part of EE 7) says that method and<br>
constructor validation occurs per default as soon as Bean Validation constraint annotations are<br>
used on methods or constructors. You find the relevant specification section here -<br>
<a href="http://beanvalidation.org/1.1/spec/#integration-general-executable" target="_blank">http://beanvalidation.org/1.1/spec/#integration-general-executable</a><br>
<br>
To answer your question on how to disable validation. You can add a validation.xml file disabling<br>
executable validation:<br>
<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&lt;validation-config xmlns=&quot;<a href="http://jboss.org/xml/ns/javax/validation/configuration" target="_blank">http://jboss.org/xml/ns/javax/validation/configuration</a>&quot;<br>
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br>
&nbsp; &nbsp; &nbsp; &nbsp; xsi:schemaLocation=&quot;<a href="http://jboss.org/xml/ns/javax/validation/configuration" target="_blank">http://jboss.org/xml/ns/javax/validation/configuration</a> validation-configuration-1.1.xsd&quot;<br>
&nbsp; &nbsp; &nbsp; &nbsp; version=&quot;1.1&quot;&gt;<br>
<br>
&nbsp; &nbsp; &lt;executable-validation enabled=&quot;false&quot;/&gt;<br>
<br>
&lt;/validation-config&gt;<br>
<br>
Last but not least, open an issue with test case, so that we can check whether there is a bug or not.<br>
<span class="HOEnZb"><font color="#888888"><br>
&mdash;Hardy<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 26 Jan 2014, at 16:40, Emmanuel Bernard &lt;<a href="mailto:emmanuel@hibernate.org">emmanuel@hibernate.org</a>&gt; wrote:<br>
<br>
&gt; Does your offending method actually override another method?<br>
&gt; Because that would definitely be an error on your part.<br>
&gt; Glassfish uses Hibernate Validator for the validation engine so I don&#39;t<br>
&gt; think your code is at fault here. Unless they have a broken integration<br>
&gt; and nothing is validated.<br>
&gt;<br>
&gt; But it could be due to a bug on how Weld does subclassing for proxies and<br>
&gt; copy constraint annotations but I thought we had that base covered<br>
&gt; already.<br>
&gt;<br>
&gt; The best would be to open an issue with a reproducible minimal test<br>
&gt; case. From there we could either fix the offending bug and if there is<br>
&gt; none see how we could report several errors in one go.<br>
&gt;<br>
&gt; Emmanuel<br>
&gt;<br>
&gt; On Wed 2014-03-26 10:16, Mike Hostetler wrote:<br>
&gt;&gt; I&#39;m probably one of the many that is moving away from Glassfish to WildFly.<br>
&gt;&gt; I have done some trivial changes but now Weld is giving validation failures<br>
&gt;&gt; like the following on some of our EJB3 beans:<br>
&gt;&gt;<br>
&gt;&gt; javax.validation.ConstraintDeclarationException: HV000151: A method<br>
&gt;&gt; overriding another method must not alter the parameter constraint<br>
&gt;&gt; configuration<br>
&gt;&gt;<br>
&gt;&gt; The worse thing is that only see one at a time: so I fix one, do the<br>
&gt;&gt; build-redeploy dance, and then see the next one. Most of the problems is<br>
&gt;&gt; that in the overriding class we use javax.validation.constraints.NotNull<br>
&gt;&gt; annotation on the parameter, which is what Weld doesn&#39;t seem to like.<br>
&gt;&gt; Obviously these worked in Glassfish.<br>
&gt;&gt;<br>
&gt;&gt; My first thought is: how can I shut off Weld validation? If that is not<br>
&gt;&gt; possible (which I&#39;m willing to accept), then how can I see these validation<br>
&gt;&gt; errors all at once instead of one at a time during deployment?<br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt; --<br>
&gt;&gt; Mike Hostetler<br>
&gt;&gt; <a href="http://mike.hostetlerhome.com/" target="_blank">http://mike.hostetlerhome.com/</a><br>
&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; wildfly-dev mailing list<br>
&gt;&gt; <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; wildfly-dev mailing list<br>
&gt; <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mike Hostetler<br><a href="http://mike.hostetlerhome.com/">http://mike.hostetlerhome.com/</a><br><br>
</div>