title: GWT ERROR: No source code is available for type org.hibernate.validator.constraints.impl.SizeValidatorForString
body: <p>I am trying to set up client-side validation for my GWT app by following instructions provided by the following link:</p>
  
  <p><a href="http://code.google.com/p/google-web-toolkit/wiki/BeanValidation" rel="nofollow">http://code.google.com/p/google-web-toolkit/wiki/BeanValidation</a></p>
  
  <p>...and by looking at the validation sample provided in:</p>
  
  <p><a href="http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation" rel="nofollow">http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation</a></p>
  
  <p>I have set up the exact same project as in the validation sample, but as a regular GWT project - not using Maven.  I have hibernate-validator-4.2.0.Final.jar and slf4j-api-1.6.1.jar on both my client and server classpaths.  However; I am still getting the following error at runtime:</p>
  
  <pre><code>No source code is available for type org.hibernate.validator.constraints.impl.SizeValidatorForString; did you forget to inherit a required module?
  No source code is available for type org.hibernate.validator.constraints.impl.SizeValidatorForCollection; did you forget to inherit a required module?
  No source code is available for type org.hibernate.validator.constraints.impl.SizeValidatorForMap; did you forget to inherit a required module?
  </code></pre>
  
  <p>The classes mentioned are in hibernate-validator-4.2.0.Final.jar.  Therefore, I am a bit confused.  Could it be that the super-source statement in <a href="http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/src/main/java/com/google/gwt/sample/validation/Validation.gwt.xml" rel="nofollow">Validation.gwt.xml</a> that is hiding the classes defined in the jar?</p>