Validation framework fails to compile due to ScriptAssertValidator

178 views
Skip to first unread message

koma

unread,
Dec 18, 2011, 5:17:52 PM12/18/11
to google-we...@googlegroups.com
Hi

I have included 

<inherits name="org.hibernate.validator.HibernateValidator" /> and now my project fails to compile with :

java.lang.ClassNotFoundException: org.hibernate.validator.constraints.impl.ScriptAssertValidator

I noticed in the GWT contributors group this thread, talking about the same issue. I am afraid that the introduction of maven support killed my compile ?

https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/iHHz8NLcY8I


Anybody ?

koma

unread,
Dec 18, 2011, 5:25:17 PM12/18/11
to google-we...@googlegroups.com
In the HibernateValidator module i says clearly to exclude the problematic package... so obvious no source code available.
But how to use this module then ?

<?xml version="1.0" encoding="UTF-8"?>
<module>
<!--
Import this module to use Hibernate Validator during the compilation of validation classes for
gwt clients.
 -->
  <inherits name='com.google.gwt.validation.Validation' />
  <source path="constraints">
    <exclude name="impl/scriptassert/" />
    <exclude name="super/" />
  </source>
  <source path="engine">
    <include name="ConstraintViolationImpl*.java"/>
    <include name="ValidationSupport.java"/>
    <include name="NodeImpl.java"/>
    <include name="PathImpl*.java"/>
  </source>
  <source path="">
    <include name="ValidationMessages.java"/>
    <include name="HibernateValidationMessageResolver.java"/>
  </source>
  <super-source path="super" />
  <replace-with
    class="org.hibernate.validator.HibernateValidationMessageResolver">
    <when-type-is class="com.google.gwt.validation.client.ProviderValidationMessageResolver" />
  </replace-with>
</module>

koma

unread,
Dec 20, 2011, 6:42:28 PM12/20/11
to google-we...@googlegroups.com
I found it... I started out with GWTVF (Gwt validation framework, another library. That one required this JVM setting :

"-Dgwt.validation.excluded.ValidatorClassesRegexp=^org.hibernate.*"

which was still set.
Removing it fixed my issue.
Reply all
Reply to author
Forward
0 new messages