Im trying to get my Android app to communicate with my GWT WebProject (GWT 2.5.1)... generally i have it nailed down from a code perspective but i keep having code import problems...
Initially I would get a NoClassDefFoundError on the RPCService and RPCServiceAsync classes when trying to instantiate them from the android project using SyncProxy and they were being defined in the web project... even though the mobile project depended on the web project in build-path it was not exporting the web project code into the mobile apk... i figured this might be because the GWT compile actually converts things to javascript and not build a jar but not sure...
i proceeded to move the RPCService and RPCServiceAsync files to the andoird project but kept the RPCServiceImpl in the web project and switched the dependency (i.e. web project depends on android one)... i now no longer get the NoClassDefFoundError but instead the syncproxy is failing saying it cannot find the policy file in the classpath... that is because the policy file resides in the WAR directory of the web project...
it seems to me i am splitting my projects incorrectly and i wonder what is the best way to do it? how can i greate a GWT application that will export the rpc policy files and/or its java classes?
thx