我正在尝试通过Eclipse Helios的Google App Engine插件在本地创建一个简单的Hello World。当想要使用eclipse工具(在我的项目-> Run As -> Web Application中右击)启动serveur时,问题出现了,控制台总是显示以下日志:
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有没有人知道如何让它工作?
感谢您的建议,并为我糟糕的英语道歉…
发布于 2012-11-27 19:11:23
我也遇到了同样的问题。但我的解决方案是删除现有的启动配置(在Run > Run configurations中),关闭对话框,然后尝试右键单击您的项目> Run As > Web Application。
发布于 2013-08-20 20:47:06
对我来说,它是项目名称中的空格,与工作区中的文件夹名称一致。无论是谁在调用dev服务器启动器,都没有在war目录周围使用引号。
https://stackoverflow.com/questions/10195808
复制相似问题