Thursday, November 24, 2011

Creating your first J2EE Google App and Host in Google Apps Engine.

This is for people who just want to know how to build an app and upload to Google Apps Engine so that you dont have to worry about Server and Hosting mechanism.

If you have an J2EE WebApp and you want to host it in Google Apps Engine, here are the steps.
Assumption, you have a Google/GMAIL account.

Step 1: Go to and create a new application.
If you have never used App Engine before, you might be asked to verify your mobile phone number before you can create a new app.

Step 2: Give your application a name – it should be unique and may only include lowercase alphabets and digits.
For this example, our app identifier is “amulsmmtest”. (
Application Title-> SMM Test For ATK -AMulya

Unzip to a dir called D:\Downloads\appengine-java-sdk-1.6.0\appengine-java-sdk-1.6.0\

Step4:Create an J2EE WebApp having a servlet/jsp/HTML.
Step5:In the WebApp,under WEB-INF dir(where web.xml resides),create a new XML file called appengine-web.xml
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="">

Step6:From JDeveloper, right click and deploy the War file to a directory, say D:\ATK\SMM\GoogleAppOutSideFireWall\deploy\webapp.war

Step7: Unzip this war to D:\ATK\SMM\GoogleAppOutSideFireWall\deploy\webapp

Step8:You are done now to upload the App to Google Apps Engine, to your own domain, you have created in Step2.

Step9: Go to your Command Prompt and make sure, your %JAVA_HOME%/bin is in classpath
Execute the following Java command to upload the WebApp

D:\Downloads\appengine-java-sdk-1.6.0\appengine-java-sdk-1.6.0\bin\appcfg.cmd -p update D:\ATK\SMM\GoogleAppOutSideFireWall\deploy\webapp

Thats it, now access the HTML page in your webapp using this URL

Where is your domain and GoogleAppMainPage.html is the HTML page inside your webapp's WEB-INF dir.


Anonymous said...

Where they learn techniques on how to improve their patient's mobility, relieve their pain and treat temporary or permanent disabilities, through various therapeutic techniques and procedures. Moreover, once you start disliking your partner, even the smallest of their mistakes seem blunders to you and ultimately it would led to differences between both of you. The treatments and care an RT provides to these patients would be drug and oxygen administration to the lungs which may also call for cardiopulmonary resuscitation.
Feel free to visit my blog :: dealing with holiday depression

Anonymous said...

Awesome! Its genuinely amazing piece of writing, I have got much clear idea regarding from this post.
Take a look at my web blog :

Anonymous said...

I really love your website.. Excellent colors & theme.
Did you create this web site yourself? Please reply back as I'm trying to create my own blog and would like to learn where you got this from or what the theme is named. Appreciate it!
Also visit my blog diablo 3 guide

Anonymous said...

It's going to be ending of mine day, however before ending I am reading this great article to increase my knowledge.
Also see my site: how to get rid of acne home remedies

Justin said...

I am trying to develop similiar application using jdev 10g, but I am getting error while creating the servlet. Please help..


Project: C:\Oracle\jdevstudio10135\jdev\mywork\gaeservlet\gaeprj\gaeprj.jpr
Error: class format error: UserServiceFactory.class on classpath C:\Oracle\jdevstudio10135\jdev\mywork\gaeservlet\gaeprj\public_html\WEB-INF\lib\appengine-api.jar/com/google/appengine/api/users/UserServiceFactory.class
Error: class format error: UserService.class on classpath C:\Oracle\jdevstudio10135\jdev\mywork\gaeservlet\gaeprj\public_html\WEB-INF\lib\appengine-api.jar/com/google/appengine/api/users/UserService.class
Error: class format error: User.class on classpath C:\Oracle\jdevstudio10135\jdev\mywork\gaeservlet\gaeprj\public_html\WEB-INF\lib\appengine-api.jar/com/google/appengine/api/users/User.class
Error(9,8): User not found
Error(10,8): UserService not found
Error(11,8): UserServiceFactory not found
Error(45,34): identifier UserServiceFactory not found

Josi Bunder said...

Best web hosting companies. Reviews, rates, statistics of top hosting companies.
Find best hosting company at