This problem can creep up in a number of ways, the main issue is that you do not have the validation-api-1.0.0.GA.jar on your classpath.
I ran into this issue using maven to build my eclipse project. Someone from the gwt 2.3 forgot to include the validation-api jar as a dependency in the maven pom for gwt 2.3. So as a consequence one needs to add this jar explicitly to their project. This thread discusses the issue more in depth... http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users/browse_thread/thread/5f6c9324a3119c30?pli=1 -Morgan On May 21, 8:41 am, Sleem <mohammedsl...@gmail.com> wrote: > Dears > > I have built an application using the GWT Eclipse plugin + GXT, when I > migrated to the new SDK 2.3 (Window->preferences->google->web toolkit) > and recompiled my app it gave the following errors > > Compiling module XXX > Validating newly compiled units > [ERROR] Errors in 'jar:file:/D:/SDKs/gwt-2.3.0/gwt-user.jar!/com/ > google/gwt/editor/client/EditorDriver.java' > [ERROR] Line 20: The import > javax.validation.ConstraintViolation cannot be resolved > [ERROR] Line 97: ConstraintViolation cannot be resolved to a > type > [ERROR] Errors in 'jar:file:/D:/SDKs/gwt-2.3.0/gwt-user.jar!/com/ > google/gwt/editor/client/impl/AbstractSimpleBeanEditorDriver.java' > [ERROR] Line 28: Name clash: The method > setConstraintViolations(Iterable<ConstraintViolation<?>>) of type > BaseEditorDriver<T,E> has the same erasure as > setConstraintViolations(Iterable<ConstraintViolation<?>>) of type > EditorDriver<T> but does not override it > [ERROR] Errors in 'jar:file:/D:/SDKs/gwt-2.3.0/gwt-user.jar!/com/ > google/gwt/editor/client/impl/BaseEditorDriver.java' > [ERROR] Line 31: The import > javax.validation.ConstraintViolation cannot be resolved > [ERROR] Line 67: ConstraintViolation cannot be resolved to a > type > [ERROR] Errors in 'jar:file:/D:/SDKs/gwt-2.3.0/gwt-user.jar!/com/ > google/gwt/editor/client/impl/SimpleViolation.java' > [ERROR] Line 25: The import > javax.validation.ConstraintViolation cannot be resolved > [ERROR] Line 40: ConstraintViolation cannot be resolved to a > type > [ERROR] Line 43: ConstraintViolation cannot be resolved to a > type > [ERROR] Line 44: Missing code implementation in the compiler > [ERROR] Line 49: ConstraintViolation cannot be resolved to a > type > [ERROR] Line 49: Missing code implementation in the compiler > [ERROR] Line 70: ConstraintViolation cannot be resolved to a > type > [ERROR] Line 72: ConstraintViolation cannot be resolved to a > type > [ERROR] Line 73: ConstraintViolation<?> cannot be resolved to > a type > [ERROR] Line 77: ConstraintViolation<capture#2-of ?> cannot > be resolved to a type > [ERROR] Line 81: ConstraintViolation<capture#3-of ?> cannot > be resolved to a type > [ERROR] Line 89: ConstraintViolation<capture#4-of ?> cannot > be resolved to a type > [ERROR] Line 93: ConstraintViolation<capture#5-of ?> cannot > be resolved to a type > [ERROR] Line 98: ConstraintViolation cannot be resolved to a > type > [ERROR] Errors in 'jar:file:/D:/SDKs/gwt-2.3.0/gwt-user.jar!/com/ > google/gwt/editor/client/testing/MockSimpleBeanEditorDriver.java' > [ERROR] Line 26: The import > javax.validation.ConstraintViolation cannot be resolved > [ERROR] Line 35: The type MockSimpleBeanEditorDriver<T,E> > must implement the inherited abstract method > EditorDriver<T>.setConstraintViolations(Iterable<ConstraintViolation<?>>) > > [ERROR] Line 107: Name clash: The method > setConstraintViolations(Iterable<ConstraintViolation<?>>) of type > MockSimpleBeanEditorDriver<T,E> has the same erasure as > setConstraintViolations(Iterable<ConstraintViolation<?>>) of type > EditorDriver<T> but does not override it > [ERROR] Line 108: ConstraintViolation cannot be resolved to a > type > [ERROR] Errors in 'jar:file:/D:/SDKs/gwt-2.3.0/gwt-user.jar!/ > javax/validation/super/javax/validation/Configuration.java' > [ERROR] Line 93: TraversableResolver cannot be resolved to a > type > [ERROR] Line 105: ConstraintValidatorFactory cannot be > resolved to a type > [ERROR] Line 182: TraversableResolver cannot be resolved to a > type > [ERROR] Line 182: No source code is available for type > TraversableResolver; did you forget to inherit a required module? > [ERROR] Line 194: ConstraintValidatorFactory cannot be > resolved to a type > [ERROR] Line 194: No source code is available for type > ConstraintValidatorFactory; did you forget to inherit a required > module? > [ERROR] Line 202: ValidatorFactory cannot be resolved to a > type > [ERROR] Line 202: No source code is available for type > ValidatorFactory; did you forget to inherit a required module? > [ERROR] Errors in 'jar:file:/D:/SDKs/gwt-2.3.0/gwt-user.jar!/ > javax/validation/ > ConstraintViolationException_CustomFieldSerializer.java' > [ERROR] Line 30: ConstraintViolationException cannot be > resolved to a type > [ERROR] Line 34: ConstraintViolationException cannot be > resolved to a type > [ERROR] Line 34: No source code is available for type > ConstraintViolationException; did you forget to inherit a required > module? > [ERROR] Line 39: ConstraintViolation cannot be resolved to a > type > [ERROR] Line 39: ConstraintViolation cannot be resolved to a > type > [ERROR] Line 40: ConstraintViolationException cannot be > resolved to a type > [ERROR] Line 44: ConstraintViolationException cannot be > resolved to a type > [ERROR] Errors in 'jar:file:/D:/SDKs/gwt-2.3.0/gwt-user.jar!/ > javax/validation/super/javax/validation/MessageInterpolator.java' > [ERROR] Line 21: The import javax.validation.metadata cannot > be resolved > [ERROR] Line 66: ConstraintDescriptor cannot be resolved to a > type > [ERROR] Errors in 'jar:file:/D:/SDKs/gwt-2.3.0/gwt-user.jar!/ > javax/validation/super/javax/validation/constraints/Pattern.java' > [ERROR] Line 30: The import javax.validation.Constraint > cannot be resolved > [ERROR] Line 31: The import javax.validation.Payload cannot > be resolved > [ERROR] Line 49: Constraint cannot be resolved to a type > [ERROR] Line 49: The attribute validatedBy is undefined for > the annotation type Constraint > [ERROR] Line 75: Payload cannot be resolved to a type > [ERROR] Errors in 'jar:file:/D:/SDKs/gwt-2.3.0/gwt-user.jar!/ > javax/validation/super/javax/validation/spi/ConfigurationState.java' > [ERROR] Line 22: The import > javax.validation.ConstraintValidatorFactory cannot be resolved > [ERROR] Line 24: The import > javax.validation.TraversableResolver cannot be resolved > [ERROR] Line 93: ConstraintValidatorFactory cannot be > resolved to a type > [ERROR] Line 107: TraversableResolver cannot be resolved to a > type > Computing all possible rebind results for > 'com.google.gwt.user.client.UserAgentAsserter' > Rebinding com.google.gwt.user.client.UserAgentAsserter > Checking rule <generate-with > class='com.google.gwt.editor.rebind.SimpleBeanEditorDriverGenerator'/> > [WARN] Detected warnings related to > 'com.google.gwt.editor.client.SimpleBeanEditorDriver'. Are > validation-api-<version>.jar and validation-api-<version>-sources.jar > on the classpath? > Specify -logLevel DEBUG to see all errors. > [WARN] Unknown type > 'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in > deferred binding rule > Scanning for additional dependencies: jar:file:/D:/workspace/XXX/ > gxt.jar!/com/extjs/gxt/ui/client/core/El.java > Computing all possible rebind results for > 'com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl' > Rebinding com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl > Could not find an exact match rule. Using 'closest' rule > <replace-with > class='com.extjs.gxt.ui.client.core.impl.ComputedStyleImplIE'/> based > on fall back values. You may need to implement a specific binding in > case the fall back behavior does not replace the missing binding > [ERROR] Errors in 'jar:file:/D:/workspace/XXX/gxt.jar!/com/extjs/ > gxt/ui/client/widget/grid/GridView.java' > [ERROR] Internal compiler error > java.lang.IncompatibleClassChangeError: Found interface > com.google.gwt.core.ext.typeinfo.JClassType, but class was expected > at com.extjs.gxt.ui.rebind.core.TemplatesGenerator > $SourceGenerator.validateType(TemplatesGenerator.java:142) > at com.extjs.gxt.ui.rebind.core.TemplatesGenerator > $SourceGenerator.generate(TemplatesGenerator.java:97) > at > com.extjs.gxt.ui.rebind.core.TemplatesGenerator.generate(TemplatesGenerator > .java: > 56) > at > com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja > va: > 48) > at > com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Generator > ExtWrapper.java: > 60) > at > com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally > (StandardGeneratorContext.java: > 681) > at > com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: > 41) > at com.google.gwt.dev.shell.StandardRebindOracle > $Rebinder.rebind(StandardRebindOracle.java:74) > at > com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j > ava: > 285) > at > com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j > ava: > 274) > at > com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAns > wers(DistillerRebindPermutationOracle.java: > 91) > at > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRe > binds(WebModeCompilerFrontEnd.java: > 106) > at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox > $CompilerImpl.process(AbstractCompiler.java:251) > at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: > 444) > at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox > $CompilerImpl.compile(AbstractCompiler.java:170) > at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox > $CompilerImpl.compile(AbstractCompiler.java:285) > at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access > $400(AbstractCompiler.java:139) > at > com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java: > 587) > at > com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations( > BasicWebModeCompiler.java: > 124) > at > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio > ns(WebModeCompilerFrontEnd.java: > 54) > at > com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript > Compiler.java: > 525) > at > com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav a: > 35) > at com.google.gwt.dev.Precompile.precompile(Precompile.java:538) > at com.google.gwt.dev.Precompile.precompile(Precompile.java:492) > at com.google.gwt.dev.Precompile.precompile(Precompile.java:405) > at com.google.gwt.dev.Compiler.run(Compiler.java:215) > at com.google.gwt.dev.Compiler.run(Compiler.java:187) > at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) > at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: > 87) > at > com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu > nner.java: > 81) > at com.google.gwt.dev.Compiler.main(Compiler.java:166) > > [ERROR] Unexpected > java.lang.IncompatibleClassChangeError: Found interface > com.google.gwt.core.ext.typeinfo.JClassType, but class was expected > at com.extjs.gxt.ui.rebind.core.TemplatesGenerator > $SourceGenerator.validateType(TemplatesGenerator.java:142) > at com.extjs.gxt.ui.rebind.core.TemplatesGenerator > $SourceGenerator.generate(TemplatesGenerator.java:97) > at > com.extjs.gxt.ui.rebind.core.TemplatesGenerator.generate(TemplatesGenerator > .java: > 56) > at > com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja > va: > 48) > at > com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Generator > ExtWrapper.java: > 60) > at > com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally > (StandardGeneratorContext.java: > 681) > at > com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: > 41) > at com.google.gwt.dev.shell.StandardRebindOracle > $Rebinder.rebind(StandardRebindOracle.java:74) > at > com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j > ava: > 285) > at > com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j > ava: > 274) > at > com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAns > wers(DistillerRebindPermutationOracle.java: > 91) > at > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRe > binds(WebModeCompilerFrontEnd.java: > 106) > at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox > $CompilerImpl.process(AbstractCompiler.java:251) > at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: > 444) > at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox > $CompilerImpl.compile(AbstractCompiler.java:170) > at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox > $CompilerImpl.compile(AbstractCompiler.java:285) > at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access > $400(AbstractCompiler.java:139) > at > com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java: > 587) > at > com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations( > BasicWebModeCompiler.java: > 124) > at > com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio > ns(WebModeCompilerFrontEnd.java: > 54) > at > com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript > Compiler.java: > 525) > at > com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav a: > 35) > at com.google.gwt.dev.Precompile.precompile(Precompile.java:538) > at com.google.gwt.dev.Precompile.precompile(Precompile.java:492) > at com.google.gwt.dev.Precompile.precompile(Precompile.java:405) > at com.google.gwt.dev.Compiler.run(Compiler.java:215) > at com.google.gwt.dev.Compiler.run(Compiler.java:187) > at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) > at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: > 87) > at > com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu > nner.java: > 81) > at com.google.gwt.dev.Compiler.main(Compiler.java:166) > > Any help would be highly appreciated -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.