Closed GoogleCodeExporter closed 9 years ago
I think you're missing something very important about GWT modules : your
Java-Domain project produces a .jar file. But if you don't tune your build
system(maven, ant or whatever), your jar will only contains .class files, not
the .java source requiered by the GWT compilator to produce JavaScript.
If you are using maven, also note that by default, maven exclude every file in
src/main/java which is not a .java file. To have a valid GWT module jar, you'll
have to add some build configuration like this :
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/client/**</include>
<include>**/*.gwt.xml</include>
</includes>
</resource>
</resources>
</build>
(or, if you use gwt-maven-plugin, have a look at 'gwt-source' goal)
You will also need to have to provide a com.test.gwttest.Domain.gwt.xml file
with the <source path='domain'/> in it.
Actually, the <source path='domain'/> in your GWT-UI .gwt.xml file is useless.
You might want to read more on GWT multi-module project configuration here :
http://mojo.codehaus.org/gwt-maven-plugin/user-guide/multiproject.html
Hope that helps !
Original comment by gael.laz...@gmail.com
on 24 Jul 2012 at 2:52
Ah, correct. The gwt project which was referring the jar didn't have source
files in it. I couldn't think that way. Sorry for wasting your time.
Original comment by shivakum...@gmail.com
on 24 Jul 2012 at 4:01
no problem ;)
Is 0.40-SNAPSHOT working now ?
Original comment by gael.laz...@gmail.com
on 24 Jul 2012 at 4:02
It looks like the issue 150 where declaring Ui attribute is a must even using
in UiHandler still exists.
Because of some dependencies I am still trying to resolve, I couldn't verify
the issue 149. But it is not a severe one.
Though the test runner doesn't stop complaining about non availability of DTO
source class and stops abrupty telling couldn't find the entry point class, it
still complains with following error message and continues execution.
[ERROR] Line 61: No source code is available for type java.io.ObjectInputStream; did you forget to inherit a required module?
[ERROR] Line 63: The method getProperty(String) is undefined for the type System
[ERROR] Line 65: No source code is available for type java.io.FileInputStream; did you forget to inherit a required module?
[ERROR] Line 68: No source code is available for type java.io.FileNotFoundException; did you forget to inherit a required module?
[ERROR] Line 72: No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module?
[ERROR] Line 76: No source code is available for type com.google.gson.Gson; did you forget to inherit a required module?
Original comment by shivakum...@gmail.com
on 24 Jul 2012 at 9:10
You can safely ignore those error message : since you don't have to write test
compilable in JavaScript (like for GWTTestCase), non compilable Java
dependencies in your GwtTest subclasses are not fatal errors
Original comment by gael.laz...@gmail.com
on 26 Jul 2012 at 8:14
Original issue reported on code.google.com by
shivakum...@gmail.com
on 24 Jul 2012 at 2:29