I have a GWT based application deployed on GAE for Java. I'm planning to try out GWT Polymer. GAE doesn't support JDK 8 as of now.
Does GWT Polymer require JDK 8 or would it work with JDK 7?
I cannot find this information on the project page.
As things are very fluid at this time, I suggest building the sample todolist app, enhancing it with your other dependencies, and confirming it working for your configuration.
FWIW, I just performed this exercise and ran into multiple frustrations forcing me to upgrade gwt to 2.8 SNAPSHOT which then requires Java 8. I then ran into a blocker with google-gin that I've posted to the google groups.
I'm using: GWT 2.8.0 beta 1, jdk level 1.7 (for GAE ),
vaadin-gwt-polymer-elements-1.2.1.0.jar.
All works fine.
Related
Back in Android Studio 2.0 you could just add a Cloud Endpoints 1.0 backend module and it would generate for you a sample project that used Objectify. It was very convenient.
However, Android Studio 3.0 no longer has this feature and Cloud Endpoints 2.0 requires you use IntelliJ Ultimate edition to generate a App Engine Standard Environment project. However... IntelliJ Ultimate edition costs $500 and it doesn't appear a sample project with Objectify is created... Sigh...
So my question is, what is the best way to create a sample Cloud Endpoints project that uses Objectify? Because as of right now there appears to be no clear way from reading the documentation unless you want to shell out $500 for IntelliJ Ultimate edition.
Am I missing something??
I would suggest using the sample app as a start. You can import it as a Gradle project to Android Studio. Adding Objectify manually shouldn't be too difficult from there.
In addition to what is commented in the previous answer, if there are any doubts regarding how to use Objectify with App Engine, you can check out this code for integrating Objectify on a Java application.
You can run it using Maven as this:
mvn clean package
mvn appengine:run
After running it locally, you can deploy the app and check it works correctly:
mvn appengine:deploy
Once you check it works and understand the code, you can integrate it with the sample app indicated in the previous answer and combine them to create your Endpoints project with Objectify.
Tried
Subscribed trial for GoogleAppEngine.
1. INSTALLED GOOGLE APP ENGINE SDK
2. Downloaded the sample Java started code and deployed it. Working fine.
3. Used $appcfg.sh -A <appname> update target/appengine-try-java-1.0 to deploy
4. In this case, its a folder with all the webapp related stuffs
Question
In my case, I have a spring boot application which generates a jar file. It runs with a embedded container and I believe Google may have an alternate to deploy using Docker or some other way. But how?
There is no pointer or any details on how to run this in Google managed platform as far as I searched.
Any help or reference to documentation!! Alternates??
You can now use Google App Engine Java Flexible Environment - Java 8 Runtime:
https://cloud.google.com/appengine/docs/flexible/java/dev-java-only
It is Docker based
UPDATE:
You can now use Java 8 in App Engine Standard Environment:
Tutorial:
https://codelabs.developers.google.com/codelabs/cloud-app-engine-springboot/index.html
Example:
https://github.com/GoogleCloudPlatform/getting-started-java/tree/master/appengine-standard-java8/springboot-appengine-standard
Blog post:
https://cloudplatform.googleblog.com/2017/09/Java-8-on-App-Engine-Standard-environment-is-now-generally-available.html
Google App Engine still uses Servlet 2.5 that is below the requirements of Spring Boot (i.e. Servlet 3.0).
There is a way to workaround that, check the documentation for more details
Spring Boot requires Servlet 3.0 which GAE does not have. WorkAround is to have a "spring-boot-legacy" dependency. You can check further how to implement: https://github.com/scratches/spring-boot-sample-gae
Recently I've found out App Engine 1.9.1 has a bug which however does not occur in version 1.8.9 and below. I am developing my applications with Eclipse and the Google Plugin for Eclipse. In the Google properties of the project I switched back to 1.8.9. If I work locally I can see that it is using version 1.8.9 (the bug does not occur) however when I deploy to App Engine no matter what I do it will still run on 1.9.1. I even tryed to create a new project/application from scratch, still 1.9.1. I even deleted SDKs 1.9.1 and 1.9.0 from my system but nothing seems to help. What can I do? Thanks.
You don't control the version in production. It runs on Google servers and isn't deployed as part of your app.
Welcome to the cloud world where some parameters slip from your hand no matter how hard you try...
Indeed, you have no control over the AppEngine version that will be used to run your application in production. In fact, if you look carefully in the list of instance on your cloud console, you will see sometimes that some instances use an AppEngine version that is not even publicly available at the moment.
I have developed a GAE application on version 1.5.0 of the SDK. It is already deployed to http://linkpad.me and working properly (as of this writing). I am wondering how the upgrade process should go to get to version 1.5.1 of the GAE SDK.
As far as I can tell, I should do the following:
Download version 1.5.1 of the SDK
Test my application locally using version 1.5.1 to make sure it still works
Deploy my application
Does my application start using version 1.5.1 of GAE once I do a deploy from v1.5.1 of the SDK?
Or do I need to switch to 1.5.1 using something like the App Engine Dashboard?
Is it possible to stay with version 1.5.0 indefinitely if I never download or use SDK version 1.5.1?
(I imagine this would be a bad idea)
Your application started using 1.5.1 as soon as Google deployed it to production. There's no way for you to control which version the production servers use; they'll all upgraded at the same time.
Is it possible to stay with version
1.5.0 indefinitely if I never download or use SDK version 1.5.1? (I imagine
this would be a bad idea)
Yes, it's possible. But it would be bad idea, because essential components of the cloud are being updated all the time. And you can probably miss critical updates or stuck with obsolete facilities of your local GAE server. For example, servlet container (Jetty), hadn't supported JavaEE 6 before it updated to 8.x version.
I'm trying to run Richfaces 3.3.3Final with Google app engine but richfaces uses javax.imageio.ImageIO restricted class.
Is there any workaround for this problem ?
This is indeed known. However, at the last JavaOne JBoss presented RichFaces in the Cloud where JBoss introduced RichFaces 4.0 with GAE archetype (for Maven2).