I have application which is developed in Play framework 1.x and running on Google app engine Standard Environment.
And below is the way I am deploying the application GAE.
Command- play gae:deploy
But this command internally calling "appcfg" from GAE Cloud SDK.
So now I have to change my deployment procedure.I have tried to deploy using Cloud SDK as recommended by Google Document.The base command which - "gcloud app deploy".
I have checked the Google Cloud documentation And found that they are recommend to use Java11 for GAE standard Environment with app.yaml file.
But I want to use Java8 only as of now for GAE standard env.
But while deploying its giving warning as below-
WARNING: Automatic app detection is deprecated and will soon be removed. As an a
lternative, create an app.yaml file yourself using the directions at https://clo
ud.google.com/appengine/docs/flexible/python/configuring-your-app-with-app-yaml
(App Engine Flexible Environment) or https://cloud.google.com/appengine/docs/sta
ndard/python/config/appref (App Engine Standard Environment) under the tab for y
our language.
Deployment to Google App Engine requires an app.yaml file. This
command will run gcloud beta app gen-config to generate an app.yaml
file for you in the current directory (if the current directory does
not contain an App Engine service, please answer "no").
If I have to build app.yaml file for my java based GAE standard application what will be the structure for that?
If app.yaml file is not possible for java8 GAE application what will be the structure of appengine-web.xml for deploying this application using command
"gcloud app deploy"
There is one more alternative is ,I should migrate the application maven based application. But right now I don't want to migrate to maven tool.
They explain how to migrate here, basically get the Cloud SDK and instead of appcfg command, you’ll have to be using gcloud command.
To your questions:
1 - An app.yaml is not required for Java8 Standard Environment
2 - To deploy a Java8 app with maven to GAE Standard you will use the command mvn appengine:deploy
3 - This documentation explains how the migration to CloudSDK based Maven plugin. And this one explains the migration to Cloud SDK based Gradle plugin
Related
I have updated eclipse using this Cloud Tools for Eclips and also updated GWT pluings using this GWT Eclipse Plugin
I did all the updation using above links. i did not updated maven integration because mine project is not maven project. now i have created sample GWT web application i can run this using GWT Development mode with jetty then output will come it runs successfully. when i click on run as then i can run this project using development mode and with getty mode and with lagacy mode.
why am i not getting run this project using google app engine server?
how can run gwt sample application with google app enginer server?
Any help
thanks in advance
See the instructions in the Cloud Tools for Eclipse → Migrating from the Google Plugin for Eclipse.
I am trying to integrate vaadin-gwt-polymer-elements and upgrading my GWT app to GWT SDK 2.8. This works absolutely fine on local dev environment when I use Java 8 (jdk1.8.0_111)
When I try to deploy the app on GAE, I get the following errer
Unable to update app: Class file is Java 8 but max supported is Java 7: com/vaadin/polymer/app/AppBoxElement.class in /Users/aadhaarmehrotra/git/rnlg-ims/RNLGPC/war/WEB-INF/lib/vaadin-gwt-polymer-elements-1.7.0.0.jar
Please suggest how this app can be deployed to appengine (using Eclipse GAE plugin). Thanks.
Google App Engine doesn't support Java 8.
Consider using https://cloud.google.com/appengine/docs/flexible/
Here is the fix for this issue.
'vaadin-gwt-polymer-elements-1.7.0.0.jar' DOES require Java 8 and Appengine doesn't support Java 8 so we can not upload 'vaadin-gwt-polymer-elements-1.7.0.0.jar' to appengine.
By removing it from /WEB-INF/lib and by adding 'vaadin-gwt-polymer-elements-1.7.0.0.jar' dependency as an external JAR, the application could compile successfully and the generated JS files are only uploaded to Appengine.
By satisfying both Appengine and the JAR requirements, this app can be deployed to Appengine!!
I have created an Java app on openshift platform with JBoss Application Server 7 and MySQL 5.5 using eclipse and Jboss Openshift Tools. Now I wannt to run this application on localhost but I am unable to find any option to do so.
I googled and followed some links and was able to create jboss-as-7.1.1 server but cannot figure out how to run the application using this server as there is not option to select a server in Run As window of eclipse. Do i need to modify anything in project settings?
Did you create a server adapter for your jboss-as-7.1.1 in Eclipse? I assume you did so it looks like your project is missing the required Eclipse WTP nature. Maven project (like any OpenShift Java app) get those for free if you have m2e-wtp installed. To me it looks like you're missing that one (and eventually possibly Eclipse m2e) and need to install it.
Either use the Eclipse marketplace or point Eclipse to the following update site:
http://download.eclipse.org/m2e-wtp/releases/luna/
When i tried to deploy the Java 6 application in App engine. I got error like
Java 6 applications are prevented from being deployed to Google App Engine from any
version of the SDK, including older ones. If you need to continue to deploy Java 6
applications for compatibility reasons, you can request that your application be
whitelisted for Java 6 deployment by visiting link.
Then i changed java version 1.7 in project settings. Even after, app engine deployment throw same error.
How to fix this issue.
I finally fix this issue by installing Eclipse 4.3 Kepler and App Engine SDK 1.9.2.
Install Latest Eclipse 4.3
https://www.eclipse.org/downloads/
Install Latest Google Eclipse Plugin
https://developers.google.com/eclipse/docs/getting_started
Create a new small Java 7 project that deploys and runs successfully. Copy your existing application content into the new project. Rename the old project to use it as an archive. Rename the new project to use the original project name and application id.
If you use Eclipse, check at Preferences>Java>Compiler. The JDK Compliance is (on my laptop) not updated to the version 1.7
I am a newbie w.r.t. jetty and RESTful API's.
I want to create REST services using Jetty and wants to use embedded jetty with eclipse.
Can anyone suggest me any HowTo for installing Jetty/ Jetty plugins with Eclipse in Mac OS.
Regards,
If you're looking for an Eclipse plugin that will allow you to start your web app in Jetty via the Debug/Run menus, you may want to take a look at the run-jetty-run plugin.
If you happen to be using Maven, there's a Maven plugin you can use to start your app in Jetty as well. This can be configured to run via a launcher in Eclipse or can be launched via the command line.
Edit - Added more info about the jetty-maven-plugin:
If you're just talking about local development, then you don't have to download Jetty separately for use with the Maven plugin. The Maven plugin handles the download of the dependencies that you need by simply running mvn jetty:run. This will start your web app in Jetty (by default) at http://localhost:8080. If you use this, then there's really no need for the Eclipse plugin, either. As far as versions go, these are the available versions. I'd recommend sticking with a fairly recent version unless you have a need to use an older version of Jetty (it looks like the most recent version is a release candidate--8.0.0.RC0).
There's also an example of usage in a project on Github that I just found, but you may want to update the plugin version used.