Monday, June 27, 2011

Re: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module?

The servlet entry should only affect hosted mode. This means you're
somehow referencing the server-side class for your RPC service
somewhere in your client-side code (which you shouldn't be).

On Jun 17, 6:17 am, Zgouingo <zgoui...@gmail.com> wrote:
> Hello everyone,
>
> I know there has already been some subjects about this kind of error,
> but this time I honnestly can't understand what's happening.
> Let me introduce my project :
> I'm just beginning in the world of GWT.
> I followed some tutorials, and I try to do a RPC exchange in my
> project.
> I succeeded in adapting the RPC model into the StockWatcher example
> project, but in my personnal project, it won't work.
>
> I get this message :
> "No source code is available for type
> com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to
> inherit a required module?" on the following line of my server
> implementation of the RPC system :
> public class UserInfoServiceImpl extends RemoteServiceServlet
> implements UserInfoService {
>
> As you can see, the ServiceImpl class extends RemoteServiceServlet,
> and he seems to be unable to find the source.
>
> Here is my gwt.xml :
>
> <module>
>         <source path="client"/>
>         <source path="Internationalization"/>
>         <inherits name="com.google.gwt.user.User"/>
>         <inherits name="com.google.gwt.user.theme.standard.Standard"/>
>         <inherits name="com.msa.logoexpress.Internationalization"/>
>         <entry-point class="com.msa.logoexpress.client.LoginManager"/>
>         <extend-property name="locale" values="de"/>
>         <extend-property name="locale" values="fr"/>
>         <servlet path="/UserInfoService"
> class="com.msa.logoexpress.server.UserInfoServiceImpl"/>
> </module>
>
> I tried with and without the <servlet...> line, and it does the
> same.The same architecture worked for the stockwatcher project, and
> there I have no idea of what's wrong.
>
> What could be the problem ? Any idea ?
> Thank you very much
> Nicolas

--
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