Get Updates Via Email

Enter your email address:

Delivered by FeedBurner

Sunday, 6 July 2014

Google App Engine Hello world

In this article,I am going to show how to deploy J2EE Google Web Application in Google App Engine

 Step 1: Install Google App Engine in Eclipse Market Place.

Step 2: Create Google Web Application in Eclipse and Create  Google Web Application Name from Google App Engine Dashboard Page

Screen Shots

Project Folder Explorer Screen Shot

App Engine Xml Configuration
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="">

    Allows App Engine to send multiple requests to one instance in parallel:

  <!-- Configure java.util.logging -->
    <property name="java.util.logging.config.file" value="WEB-INF/"/>

    HTTP Sessions are disabled by default. To enable HTTP sessions specify:


    It's possible to reduce request latency by configuring your application to
    asynchronously write HTTP session data to the datastore:

      <async-session-persistence enabled="true" />

    With this feature enabled, there is a very small chance your app will see
    stale session data. For details, see



  Web application has to be given the same name that I have given in the Google App Engine page 

In Web.xml
<?xml version="1.0" encoding="utf-8"?>
<web-app xmlns:xsi=""
xsi:schemaLocation="" version="2.5">

Servlet Coding

package com.kumaran.jsp;

import javax.servlet.http.*;

public class JspExampleinGAEServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.getWriter().println("<h1>Hello, world<h1>");

Html Page

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
<!-- above set at the top of the file will set     -->
<!-- the browser's rendering engine into           -->
<!-- "Quirks Mode". Replacing this declaration     -->
<!-- with a "Standards Mode" doctype is supported, -->
<!-- but may lead to some differences in layout.   -->

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Hello App Engine</title>

    <h1>Hello App Engine!</h1>
        <td colspan="2" style="font-weight:bold;">Available Servlets:</td>        
        <td><a href="jspexampleingae">JspExampleinGAE</a></td>

Deploy this web application into google app engine