Re: No source code is available error for RemoteServiceServlet
I now undertand the issue. Looking at the Path reference you linked I
noticed that by default it only includes the client folder. I thought
that the source path directory had to include the server code as well
as the client. By changing <source path="gwt"></source> to <source
path="gwt/client"></source> I was able to get it to compile correctly.
It should be noted that since the servlets are actual Java bytecode
they are not limited to the emulated JRE libraries.
Thanks,
Joseph
On Dec 7, 1:06 am, Dalla <dalla_man...@hotmail.com> wrote:
> In your case, you have speciefied the following:
> <source path="gwt"></source>
> <source path="core"></source>
>
> which means that you should look in your gwt and core sub packages,
> rather than the client sub package as I suggested above.
>
> You can read more about source paths here:http://code.google.com/p/google-web-toolkit-incubator/wiki/PathsHandl...
>
> And what parts of the JRE the GWT compilier emulates here:http://code.google.com/intl/sv-SE/webtoolkit/doc/1.6/RefJreEmulation....
>
> On 7 Dec, 07:00, Dalla <dalla_man...@hotmail.com> wrote:
>
> > This error message usually means that you have imported a non emulated
> > class in your client package.
> > Make sure that you are only using RemoteServiceServlet (and extentions
> > thereof) in the server sub package.
> > Client side you should use RemoteService.
>
> > On 6 Dec, 23:29, Joseph <joseph.tig...@gmail.com> wrote:
>
> > > Hi,
>
> > > I'm extending the RemoteServiceServlet for server communications for
> > > my GWT application (a port of an school assignment to get acclimated
> > > with the API), but I get the following error from the GWT compiler:
>
> > > [ERROR] Line 11: No source code is available for type
> > > com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to
> > > inherit a required module?
>
> > > Here is my Module definition:
>
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.1//
> > > EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.1/distro-
> > > source/core/src/gwt-module.dtd">
> > > <module rename-to='TicTacToe'>
>
> > > <!-- Inherit the core Web Toolkit stuff. -->
> > > <inherits name='com.google.gwt.user.User' />
>
> > > <!-- Inherit the default GWT style sheet. You can change -->
> > > <!-- the theme of your GWT application by uncommenting -->
> > > <!-- any one of the following lines. -->
> > > <inherits name='com.google.gwt.user.theme.standard.Standard' />
> > > <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
> > > <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
>
> > > <!-- Other module inherits -->
> > > <inherits name="com.clayton.utilities"/>
>
> > > <source path="gwt"></source>
> > > <source path="core"></source>
>
> > > <!-- Specify the app entry point class. -->
> > > <entry-point class='com.clayton.tictactoe.gwt.client.GameEntry' />
>
> > > </module>
>
> > > I don't have to inherit more modules then the com.google.gwt.user.User
> > > do I?
>
> > > I'm sorry if this isn't the place to ask this but I've been searching
> > > for awhile and haven't been able to find anyone else with the same
> > > issue.
>
> > > Thanks,
> > > Joseph
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home