Thursday, December 24, 2009

Google App Engine Spring MVC 3 – Part 1

I have ported a Java application to act as content management system on Google App Engine. You could check out working copy at http://simplesite.chandankumar.com

I needed this for quite sometime now, updating static HTML pages for personal site is a long gone approach. Google App Engine let’s you explore your web application development to next level, all for free of cost!

You would need an appspot account, understanding about how appengine works, fair understanding Java, Spring and Spring MVC. To learn about appengine you can check out http://code.google.com/appengine/docs/java/gettingstarted/ further to learn about Spring 3.x you can follow up http://static.springsource.org/spring/docs/3.0.0.RC3/spring-framework-reference/html/index.html. I also referred to http://blog.blueshiftlab.com/2009/06/spring-3-in-appengine-guestbook-demo.html to build this simple application.

Feel free to browse the source code at http://code.google.com/p/gaesimplesite please make comments or suggestions to improve it.

4 comments:

  1. Good, Example source code is realy helpfull for quick learging

    ReplyDelete
  2. Hello, I am trying to build your this great sample in eclipse. However, I got the following error msg:


    2010/9/25 下午 04:23:17 org.springframework.web.servlet.FrameworkServlet initServletBean
    嚴重的: Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pageService' defined in ServletContext resource [/WEB-INF/spring/app-config.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.chandankumar.gaejsimplesite.gae.db.PageServiceImpl]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
    The import org.springframework cannot be resolved
    Repository cannot be resolved to a type

    Would you be kind to help me?
    Thank you very much!

    chaocraig@gmail.com

    ReplyDelete
  3. I have started play around with Heroku and I feel its easier to develop and deploy Java Application on Heroku in comparison to Google App Engine.

    ReplyDelete