I'm trying to follow a tutorial on setting up Spring MVC to work on Google App Engine. For the purposes of this question I'm using Eclipse, Maven, and a Ubuntu development environment.
I'm able to successfully build my application, as the following snippet shows :
INFO] Building war: /home/james/workspace/springappengine/target/springappengine.war
[DEBUG] adding directory META-INF/
[DEBUG] adding entry META-INF/MANIFEST.MF
[DEBUG] adding directory WEB-INF/
[DEBUG] adding directory WEB-INF/lib/
[DEBUG] adding directory WEB-INF/classes/
[DEBUG] adding directory WEB-INF/classes/com/
[DEBUG] adding directory WEB-INF/classes/com/jameselsey/
[DEBUG] adding directory WEB-INF/classes/com/jameselsey/springappengine/
[DEBUG] adding entry WEB-INF/lib/aopalliance-1.0.jar
[DEBUG] adding entry WEB-INF/lib/spring-context-3.0.3.RELEASE.jar
[DEBUG] adding entry WEB-INF/lib/spring-aop-3.0.3.RELEASE.jar
[DEBUG] adding entry WEB-INF/lib/spring-asm-3.0.3.RELEASE.jar
[DEBUG] adding entry WEB-INF/lib/commons-logging-1.1.1.jar
[DEBUG] adding entry WEB-INF/lib/spring-beans-3.0.3.RELEASE.jar
[DEBUG] adding entry WEB-INF/lib/spring-expression-3.0.3.RELEASE.jar
[DEBUG] adding entry WEB-INF/lib/spring-web-3.0.3.RELEASE.jar
[DEBUG] adding entry WEB-INF/lib/spring-context-support-3.0.3.RELEASE.jar
[DEBUG] adding entry WEB-INF/lib/spring-core-3.0.3.RELEASE.jar
[DEBUG] adding entry WEB-INF/lib/spring-webmvc-3.0.3.RELEASE.jar
[DEBUG] adding entry WEB-INF/web.xml
[DEBUG] adding entry WEB-INF/classes/com/jameselsey/springappengine/HelloController.class
[DEBUG] adding entry WEB-INF/springappengine-servlet.xml
[DEBUG] adding directory META-INF/maven/
[DEBUG] adding directory META-INF/maven/com.jameselsey/
[DEBUG] adding directory META-INF/maven/com.jameselsey/springappengine/
[DEBUG] adding entry META-INF/maven/com.jameselsey/springappengine/pom.xml
[DEBUG] adding entry META-INF/maven/com.jameselsey/springappengine/pom.properties
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.619s
[INFO] Finished at: Mon Aug 16 19:54:08 BST 2010
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
However, when I attempt to fire up the application, I get the following error message in the console :
16-Aug-2010 18:56:30 com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
com.google.apphosting.utils.config.AppEngineConfigException: Supplied application has to contain WEB-INF directory.
at com.google.appengine.tools.development.JettyContainerService.determineAppRoot(JettyContainerService.java:319)
at com.google.appengine.tools.development.JettyContainerService.initContext(JettyContainerService.java:145)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:144)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:219)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:164)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:113)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)
How can this be possible? From the maven build output it clearly shows a WEB-INF directory being created for the build.
The following is a tree
output on my target directory
james@nevada:~/workspace/springappengine/target$ pwd
/home/james/workspace/springappengine/target
james@nevada:~/workspace/springappengine/target$ tree
.
|-- classes
| `-- com
| `-- jameselsey
| `-- springappengine
| `-- HelloController.class
|-- springappengine
| |-- META-INF
| `-- WEB-INF
| |-- classes
| | `-- com
| | `-- jameselsey
| | `-- springappengine
| | `-- HelloController.class
| |-- lib
| | |-- aopalliance-1.0.jar
| | |-- commons-logging-1.1.1.jar
| | |-- spring-aop-3.0.3.RELEASE.jar
| | |-- spring-asm-3.0.3.RELEASE.jar
| | |-- spring-beans-3.0.3.RELEASE.jar
| | |-- spring-context-3.0.3.RELEASE.jar
| | |-- spring-context-support-3.0.3.RELEASE.jar
| | |-- spring-core-3.0.3.RELEASE.jar
| | |-- spring-expression-3.0.3.RELEASE.jar
| | |-- spring-web-3.0.3.RELEASE.jar
| | `-- spring-webmvc-3.0.3.RELEASE.jar
| |-- springappengine-servlet.xml
| `-- web.xml
|-- springappengine.war
|-- test-classes
`-- war
`-- work
`-- webapp-cache.xml
15 directories, 17 files
Have I missed something completely obvious? +Rep to any helpful answers!
Thanks