generate_library --input=rest --language=gwt --output_dir=.
├── apis
├── build.xml
├── com
│ ├── blue_green_group
│ │ └── gdxendpoints
│ │ └── backend
│ │ └── api
│ │ └── gwt
│ │ └── services
│ │ └── endpointsApi
│ │ └── shared
│ │ ├── EndpointsApi.java
│ │ ├── model
│ │ │ └── MyBean.java
│ │ └── package-info.java
│ └── google
│ └── api
│ └── gwt
│ └── services
│ └── EndpointsApi.gwt.xml
└── rest
By having run successfully the Google APIs Client Generator, you are now offered source code that is ready to get integrated into your existing GWT project. Familiarity with your app’s targeted functionality is needed, and a thorough understanding of the GWT directory structure.
...html/src/com/blue_green_group/gdxendpoints/backend/api/gwt/services/endpointsApi/shared/EndpointsApi.java:19: error: package com.google.api.gwt.shared does not exist
import com.google.api.gwt.shared.AuthScope;
^
...html/src/com/blue_green_group/gdxendpoints/backend/api/gwt/services/endpointsApi/shared/EndpointsApi.java:20: error: package com.google.api.gwt.shared does not exist
import com.google.api.gwt.shared.EmptyResponse;
^
...html/src/com/blue_green_group/gdxendpoints/backend/api/gwt/services/endpointsApi/shared/EndpointsApi.java:45: error: cannot find symbol
public enum EndpointsApiAuthScope implements AuthScope {
^
symbol: class AuthScope
location: interface EndpointsApi
...html/src/com/blue_green_group/gdxendpoints/backend/api/gwt/services/endpointsApi/shared/EndpointsApi.java:56: error: method does not override or implement a method from a supertype
@Override
^
and there are no such packages in my project. Indeed I found them through googling mentioned only a few times, mainly in the long deprecated gwt-google-apis project. Mostly
import com.google.api.gwt.shared.AuthScope;
import com.google.api.gwt.shared.EmptyResponse;
import com.google.api.gwt.oauth2.<...>
Compiling module com.blue_green_group.gdxendpoints.GdxDefinitionSuperdev Finding entry point classes Tracing compile failure path for type 'com.blue_green_group.gdxendpoints.client.HtmlLauncher' [ERROR] Errors in 'file:/home/myhome/AndroidStudioProjects/gdx-endpoints/html/src/com/blue_green_group/gdxendpoints/client/HtmlLauncher.java' [ERROR] Line 36: No source code is available for type com.blue_green_group.gdxendpoints.backend.endpointsApi.EndpointsApi; did you forget to inherit a required module? [ERROR] Line 89: No source code is available for type com.blue_green_group.gdxendpoints.backend.endpointsApi.EndpointsApi.Builder; did you forget to inherit a required module?
/home/myhome/AndroidStudioProjects/gdx-endpoints/backend/build/generated-source/endpoints/java/com/blue_green_group/gdxendpoints/backend/endpointsApi
Hello Matthew,
The Eclipse/Ant toolchain is not mutually exclusive by reference to Gradle / not Ant. There is a Gradle plugin for Eclipse, covering Java, so you may as well continue working in Eclipse, if you are familiar with that IDE.
“Those files” are found through properly-formulated references in the *.gwt.xml module. In general, all packages you want imported and compiled need to be identified / configured in the *.gwt.xml module. Your references should look similar to entry: <source path="packagename"> or <inherits name='com.google.gwt.user.User' />. As a result, GWT is going to see and take care of packages in: gwt_xml_modulepath.package_name. The referencing mechanism is described in detail in the “XML Element Reference” subchapter of the GWT “Organizing Projects” page.
It is important to check and make sure you don’t include server-specific code in the client code.
The following instructions demonstrate how to use the Endpoints command-line tool to generate a Gradle client bundle from a Maven project. The generally accepted approach is described in the APIs client generator document.
There is support though, for generating the classes necessary to build an Endpoints client; you may profit from reading the Best way to generate a GWT client for an API in GAE cloud endpoints group discussion.
In the Endpoints Command Tool documentation, there is a recommendation that you use the latest version of this feature, which is renamed to Cloud Endpoints Frameworks for App Engine. This is the updated source of information.
There are Required Files and Configuration. Your project must contain, at a minimum, the set of files described on that page. Bare minimum contents for the appengine-web.xml file and web.xml file are described on that page as well.
ant.importBuild 'build.xml'
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
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 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+unsubscribe@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/73e17ccc-a1ad-426d-8826-0a2ba5d623a8%40googlegroups.com.
Hi. I don’t have an easy answer for you, but I’ve been watching this thread and can give you some advice. GWT and Cloud Endpoints have changed over the years and there are probably no tutorials currently relevant. That shouldn’t really matter. Cloud Endpoints will generate some javascript for you, so you just need to figure out how to get GWT to interact with the javascript just like any other javascript library. This is really just a straight-up GWT question.Are you using JsInterop? I used GWT heavily back in the days of JSNI and JSOs, which really sucked for JS interoperability. JsInterop looks pretty awesome… it looks like some people have even gotten it working with Angular. So get it working with a simple JS library, and from there it should be possible to get it working with the Endpoints-generated javascript.I’m actually pretty surprised by how much progress GWT has been making. I’m almost (but not quite) tempted to go back to it. Maybe in another year or two if/when 3.0 is out…Jeff
On Mon, Jan 9, 2017 at 8:23 PM, Matthew Rubenstein <matthew.r...@blue-green-group.com> wrote:
In my latest attempt to follow your guidance I followed the "Build a GWT app" tutorial. Rather than spend many hours proceeding with yet another GWT project that fails after hours of work despite following the instructions exactly, I found that the tutorial offers starting with the completed code that is then configured for deployment to App Engine:"Deploy to GAE / Set up a project (without Eclipse)":"Alternatively, If you would like to skip the Build a Sample GWT Application tutorial, then download and unzip this file."Like all of the GWT instructional projects documentation so far, this one's link is broken as its project has been archived. But the file is still available from:But after editing its various config files according to the tutorial instructions, and fixing some defects not mentioned in the instructions (like increasing the javac heap size to 512M, and adding <threadsafe>true</threadsafe> to appengine-web.xml , and removing old lib/ JARs that have substitute JARs downloaded by Ant, etc) the project launches in a browser in ant devmode but the browser app fails to include any actual UI widgets.Look, I appreciate the pointers to GWT resources. But I've spent hours and weeks using them only to find they're all obsolete and broken. Is there any GWT / Endpoints example project that is actually known to work recently? Or is GWT with Endpoints just not used anymore, so any resources are all ruined by bitrot and there's no point trying to use them anymore.
On Friday, January 6, 2017 at 12:00:29 PM UTC-5, George (Cloud Platform Support) 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-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.