|
Hello all, i'm trying to create a simple crud with gwt ui. I use gwt plugin and i created the ui with no problem.
All my gwt class and modules are under src/gwt and my Services for RPC comunication are under src/java.
Beans are under src/gwt and the problem start: if i define service like this public interface SportelloServiceAsync { public void listaCausali(AsyncCallback<PagingLoadResult<Causale>> callback);
} i have this error: [groovyc] Compile error during compilation with javac. [groovyc] /home/sviluppo/Documents/workspace-sts/NOME/src/java/it/flex/client/services/sportello/SportelloService.java:4: package it.flex.client.bean does not exist
[groovyc] import it.flex.client.bean.Causale; i understand the problem but how can i fix this? Thank you all (my apology for my bad english) Luca |
|
Ciao Luca.
You need to put your beans and service interfaces under src/java. In Eclipse, make sure your Java Build Path->Source includes src/java. Are you not using Groovy domain classes and GORM? You should. Robert Sent from my iPad 2 On May 17, 2011, at 10:34 AM, Luca Farsetti <[hidden email]> wrote: > Hello all, i'm trying to create a simple crud with gwt ui. I use gwt plugin and i created the ui with no problem. > > All my gwt class and modules are under src/gwt and my Services for RPC comunication are under src/java. > Beans are under src/gwt and the problem start: if i define service like this > > public interface SportelloServiceAsync { > > public void listaCausali(AsyncCallback<PagingLoadResult<Causale>> callback); > } > > i have this error: > > [groovyc] Compile error during compilation with javac. > [groovyc] /home/sviluppo/Documents/workspace-sts/NOME/src/java/it/flex/client/services/sportello/SportelloService.java:4: package it.flex.client.bean does not exist > [groovyc] import it.flex.client.bean.Causale; > > i understand the problem but how can i fix this? > > Thank you all (my apology for my bad english) > > Luca > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Yes, i use Groovy domain and GORM. I Use dto plugin for data transfer object and i have my dto beans and service interfaces under src/java and it's included to JavaBuildPath -> Source.
However, i'm not still able to compile my project. I follow this tutorial http://www.lazywithclass.com/code/4/gwt-on-grails-(1)/. The only difference is that i use gxt library.
the error is Compiling module it.ubik.moneytraker.Contabilita [java] Validating newly compiled units [java] [ERROR] Errors in 'file:/C:/Users/mariella/Documents/workspace-sts/MoneyTracker/src/gwt/it/ubik/moneytraker/client/Contabilita.java'
[java] [ERROR] Line 27: No source code is available for type it.ubik.moneytracker.contabilita.RegistroContabileServiceAsync; did you forget to inherit a required module? [java] [ERROR] Line 27: No source code is available for type it.ubik.moneytracker.contabilita.RegistroContabileService; did you forget to inherit a required module?
[java] [ERROR] Line 29: No source code is available for type it.ubik.moneytracker.RigaRegistroContabileDTO; did you forget to inherit a required module?
2011/5/17 Robert La Ferla <[hidden email]> Ciao Luca. |
|
Solved! i was implements wrong interface in my dto bean...so stupid mistake.
Anyway, at this moment i'm unable to compile and i receive this error No source code is available for type grails.plugins.dto.DTO; did you forget to inherit a required module?
my dto bean is import grails.plugins.dto.DTO; import java.math.BigDecimal; import com.google.gwt.user.client.rpc.IsSerializable;
public class RigaRegistroContabileDTO implements DTO, IsSerializable { ... } How can i solve the problem? 2011/5/18 Luca Farsetti <[hidden email]> Yes, i use Groovy domain and GORM. I Use dto plugin for data transfer object and i have my dto beans and service interfaces under src/java and it's included to JavaBuildPath -> Source. |
|
In reply to this post by Luca Farsetti
In your .gwt.xml file, you need <source path='yoursrcpath'/> ... where yoursrcpath is the path to your code. You can have multiple source elements for different paths. Robert Sent from my iPad 2
|
|
thanks Robert, but the problem was a mistake on "Serialize" interface..
Do you know how to use dto plugin with gwt? i have this error: 00:09:26,412 [ERROR] Line 7: No source code is available for type grails.plugins.dto.DTO; did you forget to inherit a required module?
Thank you again Luca 2011/5/18 Robert La Ferla <[hidden email]>
|
|
I haven't used that plugin. Can you send me a link to it? If you look at the error message, it says that you may need to inherit a required module. DTOs need to be accessed by both the Javascript client AND the backend server. Therefore the GWT compiler needs to compile your DTOs and any superclasses or related utility classes for it to work. Check the source path as I indicated in my other message. Robert Sent from my iPhone 4
|
|
In reply to this post by Luca Farsetti
Do you need to inherit the module in your MyModule.gwt.xml file
<inherits name="path to dto plugin .gwt.xml"/> ???? Just off the top of my head. On Wed, May 18, 2011 at 3:10 PM, Luca Farsetti <[hidden email]> wrote: thanks Robert, but the problem was a mistake on "Serialize" interface.. -- John Rellis @johnrellis johnrellis.blogspot.com<span onmouseout="cancel = false; window.setTimeout(WRCHideContent, 1000);" onmouseover="WRCShowContent({'rating':{'value':95,'weight':15},'flags':{},'ttl':3600,'expireTime':'20110518165427'}, this.className);" class="wrc11" style="padding-right: 16px; width: 16px; height: 16px;">
|
|
this is the plugin http://www.grails.org/plugin/dto
2011/5/18 John Rellis <[hidden email]> Do you need to inherit the module in your MyModule.gwt.xml file |
| Powered by Nabble | Edit this page |
