[Note: this is a report under a new email address as I realised that
google doesn't hide your email address]

Hi,

I added an GXT (Ext-GWT) @BEAN annotation and when I do a clean build
(with the Cypal Studio facet) the build fails with the following
error:

Failed to resolve 'com.extjs.gxt.ui.client.data.BeanModelLookup' via
deferred binding

Which is really caused by:

Processing types in compilation unit: file:/C:/dev/Project/com/test/
client/ABeanModel.java
   Found type 'ABeanModel'
      Resolving annotation '@BEAN(APojoModel.class)'
         [ERROR]
java.lang.ClassNotFoundException: com.test.client.APojoModel

What I think is occuring is that the @BEAN annotation is being
processed before the "APojoModel" class is built. Because Cypal
triggers the GWT compile on a clean, then "APojoModel" class is
removed and is not build before the BEAN annotation is processed.

There are a few (hacky) workarounds:

1) Copy the "APojoModel" class to a new "classes" directory and add
that directory to the library tab of the buildpath config in eclipse.
This is a manual step and is open to issues if you change the
"APojoModel" source and don't copy it to the new classes directory
again.

2) Don't use Cypal studio to do the GWT compile. Instead click the
compile button from hosted mode. This requires that you have set up a
"run as" dialog to invoke the GWT compile and specify the "-out build/
gwtOutput ..." arguments to point to the same location as the Cypal
preferences. You lose the Cypal ability to run the gxt module file
directly.

3) Possibly put all the POJO classes you wish to bind to BeanModels in
a seperate project that gets build first. Then add this as a
dependency of the War project.

4) Build from ANT and explicitly control build order

Perhaps Cypal can implement detection of the @BEAN annotation
(deferred bindings) and build the dependent classes first?

Any other workaournds / thoughts?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Cypal Studio for GWT" group.
To post to this group, send email to cypal-studio-for-gwt@googlegroups.com
To unsubscribe from this group, send email to 
cypal-studio-for-gwt+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cypal-studio-for-gwt?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to