2012-04-17 75 views
5

我想通過Eclipse Helios的Google App Engine插件在本地製作一個簡單的Hello World工作。 這個問題是要啓動與Eclipse工具(在我的項目右鍵集團公司 - >運行方式 - > Web應用程序)的serveur時,控制檯總是顯示這些日誌:Google App Engine:本地測試一個簡單的Hello World

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 

有沒有人有一些使它工作的idee?

感謝提出意見和我的英語不好對不起......

+0

您是否已在Eclipse中適當地配置Google SDK?轉到Window - > Preferences - > Google,然後檢查GAE和GWT sdk是否指向SDK剩餘的目錄 – 2012-04-17 17:29:00

+0

是的,我只是解決了問題:) 它是conf文件appengine-web.xml它沒有被正確填充。感謝Google提供的錯誤信息... – pierrefevrier 2012-04-17 21:09:38

+0

@pfevrier您能否更具體地瞭解一下錯過的內容? – TWiStErRob 2013-08-19 23:22:59

回答

8

我也得到了同樣的問題。但我的解決方案是刪除現有的啓動配置(在「運行」>「運行配置」中),關閉對話框,然後嘗試右鍵單擊項目>運行方式> Web應用程序。

0

對我來說,它是項目名稱中的空格,與工作區中的文件夾名稱一致。無論誰在調用dev服務器啓動器,都不會在戰爭目錄周圍使用引號。