Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Validation api on classpath? #91

Open
mellson opened this issue Aug 26, 2015 · 7 comments
Open

Validation api on classpath? #91

mellson opened this issue Aug 26, 2015 · 7 comments

Comments

@mellson
Copy link

mellson commented Aug 26, 2015

I am having some problems getting the validation api to work correctly.
The compiler does not seem to find them correctly.

I get the following error when I try to compile a gwt project:

Rebinding com.google.gwt.useragent.client.UserAgentAsserter
         Checking rule <generate-with class='com.google.gwt.validation.rebind.ValidatorGenerator'/>
            [WARN] Detected warnings related to 'javax.validation.Validator'.   Are validation-api-<version>.jar and validation-api-<version>-sources.jar on the classpath?
            [WARN] Unknown type 'javax.validation.Validator' specified in deferred binding rule

I have tried to add the two jar files on the project like this

dependencies {
        def validationApiVersion = '1.0.0.GA'
        compile "javax.validation:validation-api:${validationApiVersion}"
        compile "javax.validation:validation-api:${validationApiVersion}-sources"
    }

I have also tried to exchange the compile keyword with gwt, but I cannot get the warning to disappear.

My full build file can be seen here

@wbabachan
Copy link

I have the same problem with gwt 2.8 beta

@hacker-cb
Copy link

Same problem with 2.7.0

@andre77
Copy link

andre77 commented Dec 18, 2017

has anybody found a solution / workaround for that issue?

@carlolf
Copy link

carlolf commented Dec 18, 2017

Hi @andre77, besides we in our team do not have this problem (we startet with gwt-2.8.0 and now use gwt-2.8.2), I think you'd better switch to this fork: https://github.com/jiakuan/gwt-gradle-plugin, because there, the project is living. "steffenschaefer/gwt-gradle-plugin" project seems to be dead, because Steffen has lost interest or is busy elsewhere.

@andre77
Copy link

andre77 commented Dec 19, 2017

Hi @carlolf, thanks a lot for your reply.
actually i've found a solution by using this library gwt-bean-validators
no problems any more with the validation-api since i integrated the project

but independent of that, i will give the mentioned gwt-gradle-plugin a try, thanks again

@andre77
Copy link

andre77 commented Oct 30, 2018

Hi @carlolf,
made some rafactorinigs to my project, i face again the issue described here
now i'm using this gwt gradle plugin http://gwt-gradle-plugin.documentnode.io/
org.wisepersist:gwt-gradle-plugin:1.0.6

getting the error

Detected warnings related to 'com.google.gwt.editor.client.SimpleBeanEditorDriver'. Are validation-api-.jar and validation-api--sources.jar on the classpath?

the validation api is in my dependencies
compile 'javax.validation:validation-api:2.0.0.Final'

@carlolf
Copy link

carlolf commented Oct 30, 2018

sorry @andre77 , I am now complete out of GWT development. Since April I am a retired programmer :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants