Google App Engine(GAE) - 灵活环境 - Jetty问题

时间:2017-06-14 17:32:51

标签: java maven google-app-engine

使用mvn appengine:deploy后,我们会收到BUILD SUCCESSFUL消息...但是当您导航到URL时,会收到以下消息:

Error 404 - Not Found.

No context on this server matched or handled this request.
Contexts known to this server are:
/ ---> o.e.j.w.WebAppContext@4566e5bd{/,file:///var/lib/jetty/webapps/root/,UNAVAILABLE}{/root.war} [failed]

Powered by Jetty:// 9.4.5.v20170502

我几乎觉得WAR正被部署到AppEngine上的错误目录,导致Jetty无法找到。有什么想法吗?

1 个答案:

答案 0 :(得分:0)

事实证明,Jetty需要两个配置文件(web.xml和applicationContext.xml),web.xml定义DispatcherServlet及其配置位置,applicationContext.xml表示spring应该使用组件扫描和注释驱动配置。 / p>