Neseek77 / gwt-ent

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

GWT compilation error while rebinding TypeOracle on Annotation (com.google.gwt.resources.ext.ResourceGeneratorType) #46

Open GoogleCodeExporter opened 8 years ago

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

What is the expected output? What do you see instead?
expected : successful build
instead: compilation error
  Scanning for additional dependencies: jar:file:/.../war/WEB-INF/lib/gwtent.jar!/com/gwtent/reflection/client/TypeOracle.java
      Computing all possible rebind results for 'com.gwtent.reflection.client.TypeOracle'
         Rebinding com.gwtent.reflection.client.TypeOracle
            Invoking generator com.gwtent.gen.reflection.Reflection__ProxyGenerator
               [ERROR] Annotation (com.google.gwt.resources.ext.ResourceGeneratorType) not exists in compiled client source code, please ensure this class is exists and included in your module(.gwt.xml) file. GWTENT reflection process will ignore it and continue. 
               [ERROR] Annotation (com.google.gwt.resources.ext.DefaultExtensions) not exists in compiled client source code, please ensure this class is exists and included in your module(.gwt.xml) file. GWTENT reflection process will ignore it and continue.

What version of the product are you using? On what operating system?
Windows 7 64-bit, gwt-ent-1.0, gwt-2.1 .

Please provide any additional information below.

Original issue reported on code.google.com by tony.kyr...@gmail.com on 26 May 2011 at 9:13

GoogleCodeExporter commented 8 years ago
Is there any solution to this error? Actually my application works well, but I 
would like not to get such errors in runtime

Original comment by inor...@gmail.com on 22 Nov 2011 at 6:09

GoogleCodeExporter commented 8 years ago
Hi. We have the same problem. Did you manage to solve this issue?

Can anyone please help.

Original comment by thomas.t...@gmail.com on 8 May 2012 at 5:09

GoogleCodeExporter commented 8 years ago
You are trying to make GWT transform java annotations to JS, which is not an 
easy task for it =)
Try to exclude annotated files from compialtion in your *.gwt.xml:

<source path="DTO">
    <exclude name="**/model/**" />
</source>

Or use some transformation library like gilead.

Original comment by hamMEl...@gmail.com on 2 Jan 2013 at 2:39