how to run GWT web application with google app engine server localy - java

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.

Related

Google App Engine SDK deprecation effecting my Framework application

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

Unable to deploy on GAE - App using vaadin-gwt-polymer-elements 1.7.0.0

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!!

running spring mvc openshift application locally

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/

What plugins do I need for Dynamic Web Project or Spring MVC development in Eclipse

I am looking for what plugins I need for Dynamic Web Project or Spring MVC development. The Eclipse installed my package manager of Arch Linux doesn't have that (as expected), and I don't want to download Eclipse EE if possible. I am sure I can accomplish the same result using the Eclipse I have now.
I believe Dynamic Web Project will suffice, how do I get it up
Also tried to install the Spring Toolkit but I keep getting dependencies errors (I suppose I should start with getting Dynamic Web Project up first ...)
Go download the Eclipse Java EE package.
Go into Help -> Eclipse Marketplace -> Search for Spring Source Tool Suite and install it.
This is all you need. Hope it helps.

How do I run a JAD/JAR in the Java ME SDK (Mac) Emulator from a Netbeans Web Project

I'm using Netbeans on Mac.
I have a web project that I'm developing, that communicates with a Java MIDlet that has already been developed.
In my project /web folder, I have a /client.jar (and .jad) that interacts with my web application. I'd like a way to be able to right-click on the jad, and say "Run as MIDlet", to bring up the emulator.
You can use the Java ME SDK which is based on Netbeans. And as this SDK is based on Netbeans I'm pretty sure that you can find a way to have directly those features in Netbeans.

Categories