1

I have a multi-module GWT project built with Maven. I would like to have the generated GWT code (location specified by the gen gwt:compile parameter) available for debug in DEV mode.

I launch DEV mode from an eclipse launcher.

However, when I try to add the generated code as a source folder in eclipse, I get a ton of errors which prevent the app from running. Even with the errors, I've tried to run my webapp with no success.

The majority of the errors are JSNI 'reference to non-existant field' errors located in *_TypeSerializer.java#loadSignaturesNative() methods.

Other errors are due to the absence of generated CSS files from inlined UIBinder styles, and a couple of mismatched input parameters to ImmutableMap_FieldSerializer.deserialize(...) and ImmutableMap_FieldSerializer.serialize().

Any help is welcome!

Jonathan
  • 705
  • 5
  • 16
  • Temporarily - I usually add the target/.generated folder as src code by editing project build path. – appbootup Mar 18 '13 at 18:30
  • 1
    @SSR That is exactly what I'm doing to get the errors I mentioned. I've also tried adding every single GWT 2.5.0 jar to the build path as well. Same result. – Jonathan Mar 18 '13 at 18:34

1 Answers1

1

You have to add the folder to the source tab of the launcher, not as a source folder to your project.

Thomas Broyer
  • 64,353
  • 7
  • 91
  • 164