That project is unusable. Its deployment doc links to a replacement 
project's non-GWT page. Is there a simple GWT/Endpoints tutorial that is 
complete and works with the current infrastructure? Preferably with Android 
Studio, though I'm learning to adapt Ant build files to Gradle (after years 
of not using Ant).


* Details:
I cloned its googlearchive/appengine-gwtguestbook-namespaces-java project 
from its current location
https://github.com/googlearchive/appengine-gwtguestbook-namespaces-java

and imported it into Android Studio. I downloaded gwt-2.8.0 . I added a 
build.gradle consisting of 
ant.importBuild 'build.xml'

and added to build.properties the correct values for gwt.home and 
appengine.home . Then from the commandline I executed gradle build . I had 
to add to the gwtc target JVM arg -Xss16M because the build ran out of 
memory, but it built OK. It built a lot of classes, libraries, a war 
directory. gradle runserver started a server on localhost and it seemed to 
execute a guestbook messaging system OK.

But how to deploy it to App Engine? The README.md file says:

> You can then upload your application following the instructions described 
> in the Google App Engine Java Runtime SDK documentation: 
>  http://code.google.com/appengine/docs/java/gettingstarted/uploading.html


But that code.google.com URL redirects to
https://cloud.google.com/appengine/docs/java/gettingstarted/deploying-the-application?csw=1
"App Engine > Documentation > Java
Deploying the Application
In this final part of the Guestbook tutorial, you learn how to deploy your 
application, including generating the Google Cloud Datastore indexes 
required for deployment. This page is part of a multi-page tutorial. To 
start from the beginning and see instructions for setting up, go to 
Creating a Guestbook."

That doc is not consistent with the original project. It doesn't refer to 
GWT at all. It says that running the app on the dev server (ie. gradle 
runserver ) would generate indexes in datastore-indexes-auto.xml but that 
file contained a comment indicating my gradle runserver invocation wrote 
indices, but the XML contained only "<datastore-indexes/>".

Maybe the indexes aren't necessary. But how to deploy it? Android Studio's 
menu Build > Deploy Module to App Engine... gives only 'This project does 
not contain any App Engine modules. To add an App Engine module for your 
project,
open “File > New Module…” menu and choose one of App Engine modules.' Menu 
File > New > New Module... shows a Google Cloud Module option, but it wants 
a "Client module" value, and the dropdown is empty. The "App Engine Java 
Endpoints Module" page linked from the new module dialog is the Github 
GoogleCloudPlatform/gradle-appengine-templates/HelloEndpoints page for 
adding an Endpoints backend to an Android app. Again, nothing about GWT.

FWIW inspecting the actual Java source showed most classes were unresolved, 
such as EntryPoint and the "core" part of "import 
com.google.gwt.core.client.EntryPoint;" etc. I suppose the build converts 
the Java to Javascript against the GWT libraries without having the 
necessary dependencies for the Java to build targeting the JVM.


On Friday, January 6, 2017 at 3:09:00 PM UTC-5, Matthew Rubenstein wrote:
>
>         That GWT tutorial is inactive, superseded by a project that is 
> for Java but not GWT. It seems like all the Google projects 
> demonstrating GWT integration with App Engine (or Endpoints to 
> anywhere) are being replaced by projects for Java not GWT. 
>
> Inactive: 
>
> https://github.com/googlearchive/appengine-gwtguestbook-namespaces-java 
> ------------------------------ 
> status: inactive 
> This project is no longer actively developed or maintained. 
>
> For new work on this check out relevant link 
>
> Google App Engine Java Runtime SDK - GWT Guestbook Demo 
> ------------------------------ 
>
> Links to GoogleCloudPlatform/java-docs-samples 
>
> https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine/multitenancy/
>  
> ------------------------------ 
> Multitenancy Java sample 
>
> Shows the usage of the Namespaces API. 
>
> An App Engine guestbook using Java, Maven, and Objectify. 
> ------------------------------ 
>
>
> On Fri, 2017-01-06 at 09:00 -0800, 'George (Cloud Platform Support)' 
> via Google App Engine wrote: 
> > You may consider starting with a simple GWT tutorial, then add 
> > features gradually.  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/90b8517b-e617-4ed1-8bb9-705a3e99364a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to