【问题标题】:Google App Engine: local testing a simple hello worldGoogle App Engine:本地测试一个简单的 hello world
【发布时间】: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年了:)。祝你好运!!!

标签: google-app-engine


【解决方案1】:

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

【讨论】:

    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 2013-09-14
      • 2012-06-13
      • 1970-01-01
      • 2023-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-27
      • 2017-04-10
      相关资源
      最近更新 更多