I have problem with using Hibernate Validator with GWT 2.4. When module is starting i get error:
00:00:05,562 [ERROR] Deferred binding result type 'javax.validation.ValidatorFactory' should not be abstract
java.lang.RuntimeException: Deferred binding failed for 'javax.validation.ValidatorFactory' (did you forget to inherit a required module?) ...
module configuration:
<module rename-to='start'>
...
<inherits name="com.google.gwt.validation.Validation" />
<!-- with this doesn't work too
<inherits name="org.hibernate.validator.HibernateValidator" />
-->
...
</module>
entry point:
public class Start implements EntryPoint {
public void onModuleLoad() {
final ValidatorFactory factory = Validation.byDefaultProvider().configure().buildValidatorFactory();
...
}
}
pom.xml
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.2.0.Final</version>
</dependency>