Hi David,

I tried that but it seems GWT doesn't allow the inclusion of any kind
of server code in the shared package. I tried to put the Persistent
Classes in the shared folder but it still doesn't work. This doesn't
seem to be fair, how can one make AJAX applications without calling
the server side code at all!!!



On Nov 30, 7:38 am, David Chandler <[email protected]> wrote:
> HiTarun,
>
> You need to put your domain classes in a shared dir, then add <source
> path="shared"> tag in your .gwt.xml. See
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec...
>
> for more info.
>
> HTH,
> /dmc
>
>
>
>
>
>
>
>
>
> On Mon, Nov 29, 2010 at 5:31 AM,Tarun<[email protected]> wrote:
> > I am creating a GWT based application using Google App Engine for
> > Java.
>
> > I have created a persistent class whose data is to be shown in a
> > widget using GWT RPC calls.
> > I run a query on the server side and pass its results as a List of
> > objects of the persistent class in the *ServiceImpl class on the
> > server side.
> > To do that I have imported the class in both *Service class and
> > *ServiceAsync class. Whenever I try to compile the GWT code the
> > following error occurs:
>
> > [ERROR] Errors in 'file:/C:/.../*Service.java'
> >         [ERROR] Line 15: No source code is available for type (Server
> > Class) did you forget to inherit a required module?
>
> > It seems as if the client side code is unable to import the server
> > side code. Is there any way to solve this problem?
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> David Chandler
> Developer Programs Engineer, Google Web 
> Toolkithttp://googlewebtoolkit.blogspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to