GWT ERROR: No source code is available for type org.hibernate.validator.constraints.impl.SizeValidatorForString

I am trying to set up client-side validation for my GWT app by following instructions provided by the following link:

http://code.google.com/p/google-web-toolkit/wiki/BeanValidation

...and by looking at the validation sample provided in:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation

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:

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?

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 Validation.gwt.xml that is hiding the classes defined in the jar?

Answers


Note the error: it isn't that the classes, but that the source is missing. Make sure you have a jar with the classes on the client classpath as well.

The super-source statement is used to define a package that contains source that should be used to provide client-equivalent functionality for some non-client package.


Need Your Help

Run code in CSS file in ASP.net

asp.net css iis iis-7 server-side

In my CSS file I would like to have definitions such as:

How do I determine if current time is within a specified range using Python's datetime module?

python python-datetime

What would be the best way to see if the current time lies between say 10:30 AM and 4:30 PM.