Monday, November 29, 2010

Re: Calling Server Side code on Client Side

Hi Tarun,

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/DevGuideOrganizingProjects.html#DevGuideModuleXml

for more info.

HTH,
/dmc

On Mon, Nov 29, 2010 at 5:31 AM, Tarun <tarun.chhabra@gmail.com> 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 google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

--
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment