Git commit 23a9d6bf1550fb88141f2020621b55922910f05f applies the second of the above fixes, based on advice given in the GWT path handling FAQ.

Andrew (White), if you could please test this fix on Windows, I'd be much obliged. I ask this because it's not clear from the FAQ whether the paths should use slashes or the platform-specific File.separator (on my test machine these are the same, but not on Windows of course).

Andrew Swan
added a comment - 04/Dec/11 8:19 PM Git commit 23a9d6bf1550fb88141f2020621b55922910f05f applies the second of the above fixes, based on advice given in the GWT path handling FAQ .
Andrew (White), if you could please test this fix on Windows, I'd be much obliged. I ask this because it's not clear from the FAQ whether the paths should use slashes or the platform-specific File.separator (on my test machine these are the same, but not on Windows of course).

I've tested again using the most recent snapshot. I've still got issues with getting it to run properly in Eclipse, but it does run successfully from the command line, using mvn gwt:run.

However, once up and running I noticed that the generated GWT screens do not appear to have catered for the entity associations. So, for example, you can create a Pizza with a name and price, but not set the Base or add Toppings.

Andrew White
added a comment - 05/Dec/11 8:14 AM I've tested again using the most recent snapshot. I've still got issues with getting it to run properly in Eclipse, but it does run successfully from the command line, using mvn gwt:run.
However, once up and running I noticed that the generated GWT screens do not appear to have catered for the entity associations. So, for example, you can create a Pizza with a name and price, but not set the Base or add Toppings.

Yes, the "web gwt all" command would have been emitting these errors, amongst its other output:

...

The path to type java.util.Set which is used in type com.springsource.roo.pizzashoprc1.domain.Pizza by the field 'getToppings' needs to be added to the module's gwt.xml file in order to be used in a Proxy.

The path to type com.springsource.roo.pizzashoprc1.myproxy.proxy.BaseProxy which is used in type com.springsource.roo.pizzashoprc1.domain.Pizza by the field 'getBase' needs to be added to the module's gwt.xml file in order to be used in a Proxy.

...

The path to type java.util.Set which is used in type com.springsource.roo.pizzashoprc1.domain.PizzaOrder by the field 'getPizzas' needs to be added to the module's gwt.xml file in order to be used in a Proxy.

...

I have fixed this in Git commit 280149c8bb61598039632e4cc742dfaa2eb58b24, which allows associations to be properly persisted on OS X at least; please retest on Windows as well and let me know.

Andrew Swan
added a comment - 05/Dec/11 9:02 PM Yes, the " web gwt all " command would have been emitting these errors, amongst its other output:
...
The path to type java.util.Set which is used in type com.springsource.roo.pizzashoprc1.domain.Pizza by the field 'getToppings' needs to be added to the module's gwt.xml file in order to be used in a Proxy.
The path to type com.springsource.roo.pizzashoprc1.myproxy.proxy.BaseProxy which is used in type com.springsource.roo.pizzashoprc1.domain.Pizza by the field 'getBase' needs to be added to the module's gwt.xml file in order to be used in a Proxy.
...
The path to type java.util.Set which is used in type com.springsource.roo.pizzashoprc1.domain.PizzaOrder by the field 'getPizzas' needs to be added to the module's gwt.xml file in order to be used in a Proxy.
...
I have fixed this in Git commit 280149c8bb61598039632e4cc742dfaa2eb58b24 , which allows associations to be properly persisted on OS X at least; please retest on Windows as well and let me know.

Andrew Swan
added a comment - 06/Dec/11 2:43 PM Fixed by the two commits mentioned above. Tested by running the above-scripted application and checking that all entities and their associations can be persisted.