简体   繁体   中英

Google App Engine (GAE) - Flexible Environment - Jetty Issue

After using mvn appengine:deploy , we receive a BUILD SUCCESSFUL message... but when you navigate to the URL... the following message is received:

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

I almost feel like the WAR is being deployed to the wrong directory on the AppEngine, causing Jetty to not be able to locate. Any ideas?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM