Neseek77 / gwt-ent

Automatically exported from code.google.com/p/gwt-ent
2 stars 1 forks source link

Error in Gwt compilation #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add the gwtent.jar in classpath
2. add     <inherits name="com.gwtent.GwtEnt"></inherits> in config xml
3.

What is the expected output? What do you see instead?
expected : successful build
I see -
cleanGWT:
gwtc:
Compiling module abm.ui.service.Service
   Refreshing module from source
      Validating newly compiled units
         Removing units with errors
            [ERROR] Errors 
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
test/validate/ValidateTestCase.java'
               [ERROR] Line 9: The import com.google.gwt.validation cannot 
be resolved
               [ERROR] Line 16: IValidator cannot be resolved to a type
               [ERROR] Line 16: The method create(Class<?>) from the type 
GWT refers to the missing type IValidator
            [ERROR] Errors 
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
test/validate/Person.java'
               [ERROR] Line 5: The import com.google.gwt.validation cannot 
be resolved
               [ERROR] Line 6: The import com.google.gwt.validation cannot 
be resolved
               [ERROR] Line 7: The import com.google.gwt.validation cannot 
be resolved
               [ERROR] Line 8: The import com.google.gwt.validation cannot 
be resolved
               [ERROR] Line 11: IValidatable cannot be resolved to a type
               [ERROR] Line 13: NotNull cannot be resolved to a type
               [ERROR] Line 13: The attribute groups is undefined for the 
annotation type NotNull
               [ERROR] Line 14: NotEmpty cannot be resolved to a type
               [ERROR] Line 14: The attribute groups is undefined for the 
annotation type NotEmpty
               [ERROR] Line 15: Length cannot be resolved to a type
               [ERROR] Line 15: The attribute minimum is undefined for the 
annotation type Length
               [ERROR] Line 15: The attribute groups is undefined for the 
annotation type Length
               [ERROR] Line 18: NotNull cannot be resolved to a type
               [ERROR] Line 19: NotEmpty cannot be resolved to a type
               [ERROR] Line 20: Length cannot be resolved to a type
               [ERROR] Line 20: The attribute minimum is undefined for the 
annotation type Length
               [ERROR] Line 23: NotEmpty cannot be resolved to a type
         Removing units with errors
            [ERROR] Errors 
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/impl/InvalidConstraintImpl.java'
               [ERROR] Line 5: No source code is available for type 
javax.validation.InvalidConstraint<T>; did you forget to inherit a 
required module?
            [ERROR] Errors 
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/ValidatorFactory.java'
               [ERROR] Line 13: No source code is available for type 
javax.validation.Validator<T>; did you forget to inherit a required module?
            [ERROR] Errors 
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/ClientValidatorFactory.java'
               [ERROR] Line 15: No source code is available for type 
javax.validation.Validator<T>; did you forget to inherit a required module?
            [ERROR] Errors 
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
test/aop/AOPTestCase.java'
               [ERROR] Line 31: No source code is available for type 
com.google.gwt.junit.client.GWTTestCase; did you forget to inherit a 
required module?
            [ERROR] Errors 
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/impl/ValidatorGWT.java'
               [ERROR] Line 27: No source code is available for type 
javax.validation.Validator<T>; did you forget to inherit a required module?
               [ERROR] Line 33: No source code is available for type 
javax.validation.ElementDescriptor; did you forget to inherit a required 
module?
               [ERROR] Line 53: No source code is available for type 
javax.validation.MessageResolver; did you forget to inherit a required 
module?
               [ERROR] Line 58: No source code is available for type 
javax.validation.InvalidConstraint<T>; did you forget to inherit a 
required module?
               [ERROR] Line 158: No source code is available for type 
javax.validation.Constraint<A>; did you forget to inherit a required 
module?
               [ERROR] Line 177: No source code is available for type 
javax.validation.ConstraintValidator; did you forget to inherit a required 
module?
            [ERROR] Errors 
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/impl/ConstraintFactoryCacheImpl.java'
               [ERROR] Line 9: No source code is available for type 
javax.validation.ConstraintFactory; did you forget to inherit a required 
module?
               [ERROR] Line 16: No source code is available for type 
javax.validation.Constraint<A>; did you forget to inherit a required 
module?
            [ERROR] Errors 
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/ValidatorFactoryDefault.java'
               [ERROR] Line 11: No source code is available for type 
javax.validation.Validator<T>; did you forget to inherit a required module?
            [ERROR] Errors 
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
test/reflection/ReflectionTestCase.java'
               [ERROR] Line 47: No source code is available for type 
com.google.gwt.junit.client.GWTTestCase; did you forget to inherit a 
required module?
               [ERROR] Line 118: No source code is available for type 
javax.validation.NotNull; did you forget to inherit a required module?
               [ERROR] Line 119: No source code is available for type 
javax.validation.ConstraintValidator; did you forget to inherit a required 
module?
            [ERROR] Errors 
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/impl/ConstraintFactoryImpl.java'
               [ERROR] Line 11: No source code is available for type 
javax.validation.ConstraintFactory; did you forget to inherit a required 
module?
               [ERROR] Line 20: No source code is available for type 
javax.validation.Constraint<A>; did you forget to inherit a required 
module?
            [ERROR] Errors 
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
test/GwtEntTestCase.java'
               [ERROR] Line 5: No source code is available for type 
com.google.gwt.junit.client.GWTTestCase; did you forget to inherit a 
required module?
         Removing invalidated units
            [WARN] Compilation 
unit 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/clien
t/test/template/TemplateTestCase.java' is removed due to invalid reference
(s):
               [WARN] 
jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/test
/GwtEntTestCase.java
            [WARN] Compilation 
unit 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/clien
t/test/json/SerializationTestCase.java' is removed due to invalid reference
(s):
               [WARN] 
jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/test
/GwtEntTestCase.java
   Scanning for additional dependencies: 
jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/refl
ection/TypeOracle.java
      Computing all possible rebind results 
for 'com.gwtent.client.reflection.TypeOracle'
         Rebinding com.gwtent.client.reflection.TypeOracle
            Invoking <generate-with 
class='com.gwtent.gen.reflection.Reflection__ProxyGenerator'/>
               [ERROR] javax.validation.Constraint
com.google.gwt.core.ext.typeinfo.NotFoundException: 
javax.validation.Constraint
        at com.google.gwt.core.ext.typeinfo.TypeOracle.getType
(TypeOracle.java:446)
        at 
com.gwtent.gen.reflection.ReflectAllInOneCreator.getAllReflectionClasses
(ReflectAllInOneCreator.java:115)
        at 
com.gwtent.gen.reflection.ReflectAllInOneCreator.doGetSourceWriter
(ReflectAllInOneCreator.java:202)
        at com.gwtent.gen.LogableSourceCreator.getSourceWriter
(LogableSourceCreator.java:130)
        at com.gwtent.gen.LogableSourceCreator.generate
(LogableSourceCreator.java:105)
        at com.gwtent.gen.reflection.Reflection__ProxyGenerator.generate
(Reflection__ProxyGenerator.java:33)
        at com.google.gwt.dev.cfg.RuleGenerateWith.realize
(RuleGenerateWith.java:49)
        at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind
(StandardRebindOracle.java:113)
        at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind
(StandardRebindOracle.java:62)
        at com.google.gwt.dev.shell.StandardRebindOracle.rebind
(StandardRebindOracle.java:172)
        at com.google.gwt.dev.shell.StandardRebindOracle.rebind
(StandardRebindOracle.java:161)
        at 
com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossib
leRebindAnswers(Precompile.java:204)
        at 
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRe
binds(WebModeCompilerFrontEnd.java:128)
        at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process
(AbstractCompiler.java:151)
        at org.eclipse.jdt.internal.compiler.Compiler.compile
(Compiler.java:444)
        at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
(AbstractCompiler.java:85)
        at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
(AbstractCompiler.java:181)
        at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access$400
(AbstractCompiler.java:71)
        at com.google.gwt.dev.jdt.AbstractCompiler.compile
(AbstractCompiler.java:473)
        at 
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio
ns(WebModeCompilerFrontEnd.java:73)
        at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile
(JavaToJavaScriptCompiler.java:254)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:300)
        at com.google.gwt.dev.Compiler.run(Compiler.java:170)
        at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
        at com.google.gwt.dev.CompileTaskRunner.doRun
(CompileTaskRunner.java:84)
        at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:78)
        at com.google.gwt.dev.Compiler.main(Compiler.java:131)
   [ERROR] Errors 
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
reflection/TypeOracle.java'
      [ERROR] Line 25:  Failed to 
resolve 'com.gwtent.client.reflection.TypeOracle' via deferred binding
   [ERROR] Cannot proceed due to previous errors
C:\workspace\DEV\GoogleABM\build.xml:93: Java returned: 1
BUILD FAILED (total time: 4 seconds)

What version of the product are you using? On what operating system?

latest, windows
Please provide any additional information below.

using netbeans

Original issue reported on code.google.com by hvishwan...@gmail.com on 3 Jun 2009 at 7:59

GoogleCodeExporter commented 9 years ago
You need to inherit following in your ....gwt.xml

    <inherits name="javax.validation.Validation"/>
    <inherits name="com.google.gwt.validation.Validation"/>
    <inherits name='com.google.gwt.junit.JUnit'/>
    <inherits name='com.gwtent.GwtEntTest'/>

Original comment by dhiraj.c...@gmail.com on 11 Jun 2009 at 12:26

GoogleCodeExporter commented 9 years ago

Original comment by JamesLuo...@gmail.com on 6 Apr 2010 at 3:54