【发布时间】:2013-08-20 20:47:05
【问题描述】:
我正在尝试通过 Eclipse Helios 的 Google App Engine 插件在本地创建一个简单的 Hello World。 当想要使用 eclipse 工具启动服务器时出现问题(在我的项目上右键单击 -> 运行方式 -> Web 应用程序),控制台总是显示这些日志:
2012-04-17 19:01:09.126 java[4019:407] [Java CocoaComponent compatibility mode]: Enabled
2012-04-17 19:01:09.127 java[4019:407] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
Usage: <dev-appserver> [options] <war directory>
Options:
--help, -h Show this help message and exit.
--server=SERVER The server to use to determine the latest
-s SERVER SDK version.
--address=ADDRESS The address of the interface on the local machine
-a ADDRESS to bind to (or 0.0.0.0 for all interfaces).
--port=PORT The port number to bind to on the local machine.
-p PORT
--sdk_root=root Overrides where the SDK is located.
--disable_update_check Disable the check for newer SDK versions.
--generated_dir=dir Set the directory where generated files are created.
当我使用下面的命令时本地服务器工作:
./appengine-java-sdk/bin/dev_appserver.sh appengine-java-sdk/demos/guestbook/war
有没有人有一些让它工作的想法?
感谢您的建议,抱歉我的英语不好......
【问题讨论】:
-
您是否在 Eclipse 中正确配置了 Google SDK?转到 Window--> Preferences--> Google,并检查 GAE 和 GWT sdk 是否指向 SDK 所在的目录
-
是的,我刚刚解决了这个问题 :) 是 conf 文件 appengine-web.xml 没有正确填写。感谢 Google 提供轻微的错误消息...
-
@pfevrier 你能说得更具体些吗?
-
对不起@TWiStErRob,我不记得确切缺少什么(这个话题已经超过1年了:)。祝你好运!!!