Я пытаюсь следовать руководству по настройке Spring MVC для работы в Google App Engine. Для целей этого вопроса я использую Eclipse, Maven и среду разработки Ubuntu.
Я могу успешно построить свое приложение, как показано в следующем фрагменте:
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] ------------------------------------------------------------------------
Однако, когда я пытаюсь запустить приложение, в консоли появляется следующее сообщение об ошибке:
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)
Как это возможно? Из вывода сборки maven он ясно показывает каталог WEB-INF, создаваемый для сборки.
Ниже вывод tree
в моей целевой директории
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
Я что-то упустил совершенно очевидное? + Реп на любые полезные ответы!
Спасибо