I am working with the g4jsf integration library from the Ajax4JSF guys:
I am trying to run their KickStart sample under IDEA 6.0 (release version, build #5766):
I have been trying to get an IDEA project set up that can run the gwtKickStart example under hosted mode in the IDEA debugger. (I was able to do this on the first try, with no difficulties, using the GWT-KitchenSink sample from the GWT home page: http://code.google.com/webtoolkit/documentation/examples/kitchensink/ )
When I set up a module for gwtKickStart (either a Java application module, as in the GWT flash demo, or a Web module, as advised in more recent forum postings here), I add the sample's libraries as a project library. Then I create a GWT Run/Debug configuration, pointing it at the JavaSource/demo/gwt/public/index.html file.
There are very many problems:
1) The tests/demo/gwt/client/EntryPointTestCase.java file complains that "com.google.gwt.user.client.DOM is not present in JRE emulation library so it cannot be used in test mode".
2) Excluding that directory from the build (marking it as non-source) results in an "Invalid index" error when I try to compile. This seems to be short for an "InvalidJarIndexException" but the compiler will not tell me what jar file it is finding invalid.
3) Since the a4j-gwtKickStart's "ant shell" command successfully launches the hosted GWT browser from the command line, I tried setting up an IDEA Java application Run/Debug configuration to run the hosted browser. When I did this, I had to add gwt-dev-windows.jar to the path, and then when I would run it I would get an InvalidJarIndexException from the GWTShell class.
4) At one point last night, in an earlier set of experiments, I was able to get a GWT configuration to run (I can no longer reproduce that configuration), but it gave me various JSF errors.
In any case, it's pretty clear I'm trying to work with three technologies -- the IDEA GWT plugin, GWT itself, and the g4jsf library -- that have never been put together before by anyone. Here's hoping someone has some guidance to provide. Is there any way to debug InvalidJarIndexExceptions? Is there any way to turn up IDEA's logging level? Can GWT applications be run in hosted mode WITHOUT using the IDEA GWT plugin? Is there any more current documentation anywhere about exactly how the GWT plugin works, and what assumptions it makes about project files?
Thanks very much for any suggestions,