[英]google app engine flexible environment deploy fails with file not found
[英]Google App Engine (GAE) - Flexible Environment - Jetty Issue
使用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无法定位。 有任何想法吗?
事实证明,Jetty需要两个配置文件(web.xml和applicationContext.xml),web.xml定义了DispatcherServlet及其配置位置,applicationContext.xml指示spring应该使用组件扫描和注释驱动的配置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.