Hi,

I compiled the sources but when I'm using Validator validator =
Validation.buildDefaultValidatorFactory().getValidator(),

these are the errors :

* Deferred binding result type 'javax.validation.ValidatorFactory'
should not be abstract
* Unable to load modumle entry point class validation.client :
10:17:54.989 [ERROR] [validation] Unable to load module entry point
class validation.client.Entry (see associated exception for details)


java.lang.RuntimeException: Deferred binding failed for
'javax.validation.ValidatorFactory' (did you forget to inherit a
required module?)

at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
53)

at com.google.gwt.core.client.GWT.create(GWT.java:98)

at
com.google.gwt.validation.client.spi.GwtValidationProvider.buildValidatorFactory(GwtValidationProvider.java:
39)

at
com.google.gwt.validation.client.BaseGwtConfiguration.buildValidatorFactory(BaseGwtConfiguration.java:
55)

at
com.google.gwt.validation.client.Validation.buildDefaultValidatorFactory(Validation.java:
228)

at validation.client.Entry.onModuleLoad(Entry.java:48)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)

at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
200)

at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
523)

at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
362)

at java.lang.Thread.run(Unknown Source)
Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
previous log entries)

at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
503)

at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
49)

at com.google.gwt.core.client.GWT.create(GWT.java:98)

at
com.google.gwt.validation.client.spi.GwtValidationProvider.buildValidatorFactory(GwtValidationProvider.java:
39)

at
com.google.gwt.validation.client.BaseGwtConfiguration.buildValidatorFactory(BaseGwtConfiguration.java:
55)

at
com.google.gwt.validation.client.Validation.buildDefaultValidatorFactory(Validation.java:
228)

at validation.client.Entry.onModuleLoad(Entry.java:48)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)

at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
200)

at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
523)

at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
362)

at java.lang.Thread.run(Unknown Source)


Maxime




On 22 mai, 21:37, Adolfo Panizo Touzon <[email protected]>
wrote:
> *Hi,*
> *First, I recommend that you download the repository gwt development 
> [**http://google-web-toolkit.googlecode.com/svn/trunk/
> **
> ].
> *
> *
> *
> *The project amountsto eclipse gwt-user and the project sample / validation.
>
> Once you do that look in src/com.google.validation (here there is the GWT
> class validation) and src/org.hibernate.validation.
>
> Those are the two main projects of validation for google. In addition to the
>  standardbase classes Bean Validation JSR-303 (coming in the package
> javax.validation).
>
> Once you've done this, you must import your project in the gwt-user and use
> in your***. gwt.xml one similar to that comes in the sample project.
>
> Now I'm at that point, when you add the gwt-user project to my main
> project,something
> is wrong.
>
> A possible hand solicion would compile the gwt-user project and use the
> classes ofthe packages described above (these classes do not appear in the
> distribution of theSDK provided by Google). This step I am not able to do so
>  because as I can compilewith ant. If you are able to do it yourself, then
> you explain step by step how to run thevalidation api.
>
> Greetings!.*
>
> 2011/5/22 MaximeMularz <[email protected]>
>
>
>
>
>
>
>
>
>
> > Hi Adolfo,
>
> > I added in web-inf/lib "Validation-api-1.0.0.GA" and "Validation-
> > api-1.0.0.GA-sources", What are the classes implemented by google ?
>
> > Maxime
>
> > On May 22, 3:54 pm, Adolfo Panizo Touzon <[email protected]>
> > wrote:
> > > Hi Maxime,
>
> > > I also am trying to test the validation api.
>
> > > The fact that no work for you is normal, generic classes are calling
> > facto
> > > standard.
> > > You should call the classes implemented by google.
> > > Before you continue writing, you could say that you imported libraries
> > > anddependencies
> > > on other projects are you working?
>
> > > A greeting.
>
> > > 2011/5/21 MaximeMularz <[email protected]>
>
> > > > Hi,
>
> > > > I tried to use Validation-api-1.0.0 with GWT 2.3 but it didn't
> > > > work !!!
>
> > > > My Code :
> > > > Line 32. : Validator validator =
> > > > Validation.buildDefaultValidatorFactory().getValidator();
>
> > > > The Error :
> > > > 09:18:57.323 [ERROR] [validation] Line 32 The method
> > > > buildDefaultValidatorFactory() is undefined for the type Validation
>
> > > > Thanks for your help
>
> > > > Maxime
>
> > > > --
> > > > 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.
>
> > > --
> > > El precio es lo que pagas. El valor es lo que recibes.
> > > Warren Buffet
>
> > --
> > 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.
>
> --
> El precio es lo que pagas. El valor es lo que recibes.
> Warren Buffet

-- 
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