The Reflections library that gwt-validation uses to mine the classpath
for information does not seem to work at all in a containerized
environment.

See: http://code.google.com/p/gwt-validation/issues/detail?id=52 for
more information.

On Dec 7, 10:50 am, "Nicolas.Rocca" <[email protected]> wrote:
> Further investigations:
>
> After some debugging, I found out that in the class
> com.em.validation.rebind.scan.ClassScanner ,
> "this.reflections.getSubTypesOf(ConstraintValidator.class)" returns an
> empty list (while it is filled in hosted mode). But I couldn't find
> out why.
>
> I tried to replace the gwt-validation-2.0-BETA-SNAPSHOT-r269.jar with
> hibernate-validator-4.2.0.Final.jar in the final .war with the
> following maven config:
>                 <dependency>
>                         <groupId>com.em</groupId>
>                         <artifactId>gwt-validation</artifactId>
>                         <scope>provided</scope>
>                 </dependency>
>                 <dependency>
>                       <groupId>org.hibernate</groupId>
>                       <artifactId>hibernate-validator</artifactId>
>                       <version>4.2.0.Final</version>
>                       <scope>runtime</scope>
>                 </dependency>
>
> This worked in tomcat now, but made the hosted mode crash:
> 00:00:21,970 [ERROR] Line 1: The type org.joda.time.ReadableInstant
> cannot be resolved. It is indirectly referenced from required .class
> files
>
> :-(

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to