5

我正在尝试通过 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

有没有人有一些让它工作的想法?

谢谢你的建议,对不起我的英语不好......

4

2 回答 2

8

我也遇到了同样的问题。但我的解决方案是删除现有的启动配置(在运行 > 运行配置中),关闭对话框,然后尝试右键单击您的项目 > 运行方式 > Web 应用程序。

于 2012-11-27T11:11:22.753 回答
0

对我来说,它是项目名称中的空格,它与工作区中的文件夹名称一致。调用开发服务器启动器的人没有在战争目录周围使用引号。

于 2013-08-20T12:47:05.640 回答