Instead of
NoRPCAsync service = (NoRPCAsync) GWT.create(NoRPCImpl.class);
try
NoRPCAsync service = (NoRPCAsync) GWT.create(NoRPC.class);
or whatever you've called the non-async version of your rpc. You can
only pass client-side classes to GWT.create()
Paul
Mykhaylo Lytvynuk wrote:
> Thank you Paul, but without this line my other client class
> DashboardView which does that:
>
> NoRPCAsync service = (NoRPCAsync) GWT.create(NoRPCImpl.class);
> ((ServiceDefTarget) service).setServiceEntryPoint(GWT
> .getModuleBaseURL()
> + "/NoService");
>
> Complains like that:
>
> [ERROR] Errors in 'file:/C:/..Projects/NoAdmin/NoAdmin/src/com/
> ho/no/client/view/DashboardView.java'
> [ERROR] Line 80: No source code is available for type
> com.ho.no.server.NoRPCImpl; did you forget to inherit a required
> module?
>
> it puzzles me.
>
> On Mar 23, 1:44 pm, Paul Robinson <[email protected]> wrote:
>
>> You have a bug in your module's .gwt.xml file here:
>>
>> <source path="server"/>
>>
>> This line should be removed. It's telling GWT to compile the code in
>> your server directory to javascript.
>>
>> Paul
>>
>
>
--
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.