2012-01-20 85 views
3

我嘗試把這個樣品運行http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/252-restlet.html但一旦我開始它,我得到這個消息,我遺憾的是什麼都不知道。GAE的Restlet樣本「缺少必需的參數」

Missing required argument 'module[s]' 
Google Web Toolkit 2.4.0 
DevMode [-noserver] [-port port-number | "auto"] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | "auto"] [-server servletContainerLauncher[:args]] [-startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir] module[s] 

where 
    -noserver  Prevents the embedded web server from running 
    -port   Specifies the TCP port for the embedded web server (defaults to 8888) 
    -whitelist  Allows the user to browse URLs that match the specified regexes (comma or space separated) 
    -blacklist  Prevents the user browsing URLs that match the specified regexes (comma or space separated) 
    -logdir   Logs to a file in the given directory, as well as graphically 
    -logLevel  The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL 
    -gen    Debugging: causes normally-transient generated types to be saved in the specified directory 
    -bindAddress  Specifies the bind address for the code server and web server (defaults to 127.0.0.1) 
    -codeServerPort Specifies the TCP port for the code server (defaults to 9997) 
    -server   Specify a different embedded web server to run (must implement ServletContainerLauncher) 
    -startupUrl  Automatically launches the specified URL 
    -war    The directory into which deployable output files will be written (defaults to 'war') 
    -deploy   The directory into which deployable but not servable output files will be written (defaults to 'WEB-INF/deploy' under the -war directory/jar, and may be the same as the -extra directory/jar) 
    -extra   The directory into which extra files, not intended for deployment, will be written 
    -workDir   The compiler's working directory for internal use (must be writeable; defaults to a system temp dir) 
and 
    module[s]  Specifies the name(s) of the module(s) to host 

我使用Eclipse 3.7, 「創建Web應用程序的Projekt」 與 「GWT(3)2.4」 和 「應用程序引擎(4)1.6.0」

我有什麼進入其中,有人能幫我嗎?

Thanx Bobert

回答

5

您嘗試啓動DevMode的GWT應用程序,但「運行配置」在Eclipse中是不正確的。這是在你的 「運行配置」 的觀點應該是什麼樣一個例子:

-server com.google.appengine.tools.development.gwt.AppEngineLauncher -remoteUI「$ {} gwt_remote_ui_server_port:$ { UNIQUE_ID}」 -startupUrl的index.html -loglevel信息-war /家庭/公園/工作區/ klawt /戰爭-codeServerPort 9997 -port 8888 com.example.MyModuleEntryPoint

這是對你的思念這最後一個參數:com.example.MyModule。您必須在包com.example中包含相應的MyModule.gwt.xml。

+0

好的,謝謝!在我添加** firstSteps.FirstStepsApplication **在>運行配置> TAB「(x)= Arguments」>程序參數:.Its開始。但是,如果我開始瀏覽器的HTTP://本地主機:8888 /我成爲錯誤HTTP-Fehler 503服務不可 – Bobert

+0

我建議你發佈一個新的問題,包括所有的信息,你可以找到,像的Restlet輸出控制檯。這實際上是一個GWT相關的問題。您正在尋求幫助讓Restlet開始工作。 – koma

+0

我建議http://blog.elitecoderz.net/missing-required-argument-modules-google-web-toolkit-jetty-does-not-start-in-eclipse-project-is-not-gwt-project/2010/04/ – identy

-2

IIRC版本需要完全正確。

像我使用的Restlet 2.1和1.5.2 GAE。

還要注意的是2.0的Restlet 1.4.2支持。

+0

謝謝你的回答!我改變了它,但結果是一樣的。 – Bobert

+0

不知道如何回答這個問題 – koma

+0

不相關.... – Li3ro

相關問題