Deploying a Spring Web MVC application on GAE
As of Spring Roo 1.1.5, the Roo-generated Spring Web MVC application doesn't work on GAE. The reason for this is related to mismatch in the JSTL version used by GAE and by the Roo-generated Spring MVC application. Also, Roo-generated JPA entities support only unowned relationships (refer http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html to learn about owned and unowned relationships). In this recipe, we'll look at a Spring 3.0 Web MVC application (which uses JSTL tags that work on GAE) consisting of FlightDescription
and Flight
JPA entities and demonstrates how to create a unidirectional owned one-to-many relationship between JPA entities. The FlightDescription
entity is on the one side of one-to-many relationship.
Note
If you are using Spring Roo 1.2.x, then the Roo-generated Spring Web MVC application can be deployed successfully on GAE.
Getting ready
If you only want to run the Spring Web MVC application locally using...