简体   繁体   English

GoogleAppEngine:无法启动服务器-Jetty

[英]GoogleAppEngine: couldn't start server - jetty

Jetty did not start, and the following errors occurred. 码头未启动,并发生以下错误。 What is the cause? 原因是什么?

(OS) (作业系统)

Mac OS X 10.6.6

(Java) (Java)

Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)

(GAE) Version 1.4.2 (GAE)版本1.4.2

admin$ dev_appserver.sh --port=8080 /Users/admin/projects/sample1/war
####: 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:320)
at com.google.appengine.tools.development.JettyContainerService.initContext(JettyContainerService.java:146)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:146)
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)

Supplied application has to contain WEB-INF directory 提供的应用程序必须包含WEB-INF目录

If you build/package under windows, make sure WEB-INF is called WEB-INF, not web-inf. 如果在Windows下构建/打包,请确保将WEB-INF称为WEB-INF,而不是web-inf。 Java tools are ignoring the difference under Windows (since directory can be found just fine), but when deploying to unix environment it fails with a weird error messages like this. Java工具忽略了Windows下的差异(因为可以找到目录就可以了),但是当部署到unix环境时,它会失败,并发出类似这样的奇怪错误消息。

I don't know if it is really a cause, I experienced it under Sun ONE server. 我不知道这是否真的是原因,我在Sun ONE服务器下遇到了。

So the first line of the exception is: 因此,例外的第一行是:

com.google.apphosting.utils.config.AppEngineConfigException: Supplied application has to contain WEB-INF directory.

Do you have a WEB-INF directory? 您有WEB-INF目录吗? Is it in the correct format? 格式正确吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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