GWT needs the source code to compile its JavaScript so you cannot use closed source classes like those from App Engine. In these cases you must make a client side transfer object com.mycompany.project.ClientUser and transfer the properties you want to pass to the client. This is normally good practice anyway because you want tight control over what fields and formats are passed over the wire.

On 8 Feb 2010, at 23:45, watch wrote:

What is need to get  Eclipse to compile AppEngine functions:

import com.google.appengine.api.users.User;
-- Unable to resolve - source code unavailable.

One suggestion was to create a super class to fool the GWT compiler
but that only gets you so far.

I have even gone back to basic and worked through the turorial
http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html
but the same things happens:

ERROR] StockWatcher/src/com/google/gwt/sample/stockwatcher/client/
StockWatcher.java'
[ERROR] Line 36: UserService cannot be resolved to a type
[ERROR] Line 36: No source code is available for type UserService; did
you forget to inherit a required module?
[ERROR] Line 36: UserServiceFactory cannot be resolved

I know this is a common problem, since there is plenty of refreances
to it, but no soloution.  This is particularly fustrating as it fails
on a basic tutorial.

Any Help?

--
You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en .


--
You received this message because you are subscribed to the Google Groups "Google 
App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to