当前位置: 首页 > 知识库问答 >
问题:

GWT中的“Development mode is loading...”和“waiting for launch URL”

柳墨一
2023-03-14

我是GWT的初学者,正在尝试运行一个来自http://www.vogella.com/tutorials/GWT/article.html的示例HelloWorld程序。我安装了Eclipse Kepler 4.3的GWT插件,并下载了GWT SDK 2.3。在eclipse中配置SDK时,我发现“gwt-codeserver.jar is missing”的错误,所以我下载了“gwt-codserver-2.5”jar并将其复制到SDK文件夹中,修复了丢失jar的问题。

    Unknown Argument: -superDevMode
    DevMode [-[no]startServer] [-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] [-sourceLevel [auto, 1.6, 1.7]] module[s] 

    where 
      -[no]startServer  Starts a servlet container serving the directory specified by the -war flag. (defaults to ON)
      -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)
      -sourceLevel      Specifies Java source level (defaults to auto:1.7)
    and 
      module[s]         Specifies the name(s) of the module(s) to host

共有1个答案

鞠嘉誉
2023-03-14

这两个错误(缺少gwt-codeserver和未知参数)都暗示Google Eclipse插件没有正确检测到您正在使用的GWT SDK的版本。

GWT2.3现在已经很老了,所以我建议尝试使用GWT2.7。由于您是从GWT开始的,所以从SuperDevMode开始也比花几天时间让DevMode与最近的浏览器一起工作要好。注意:这意味着您将从浏览器中调试,而不是从IDE中调试(除非您从https://SDBG.github.io安装SDBG插件)

 类似资料:
  • 问题内容: 问候,我已经使用GWT了几周了,想要一个丰富的Table小部件。我遇到了SmartGWT库。我可以像使用GWT开发一样使用SmartGWT小部件吗?或者我需要了解一些特殊的东西吗? 谢谢 问题答案: 您将无法从SmartGWT中选择一个小部件,因为它们依赖于框架的其余部分。SmartGWT是在SmartClient库周围使用JSNI的精简包装。这是一个不错的库,但是您需要全部或全部不采

  • 我一直在玩弄gwt maven插件的最新变化。最值得注意的是,新包装的gwt应用程序和gwt库。 根据我的理解,如果我有一些代码,我想在不同的GWT应用程序之间重用,gwt-lib包所有需要的源代码和*.gwt.xml文件在所有类旁边的jar中。它像一个魅力。 如果我选择多模块maven reactor构建,那么在编译时就可以检测到所有内容,并且我能够顺利地构建和部署。但是,如果我尝试开发,闪亮的

  • 问题内容: 有谁知道使用maven和eclipse使用GWT的新2.0版本创建项目的好指南?我遇到了很多问题,无法让他们一起好好玩。 对于它的价值,我可以使用maven eclipse插件创建一个gwt项目,该插件可以正常工作,但是将其移植到maven则行不通(因此这方面的指南会很棒)。 同样,我可以使用Maven插件(gwt-maven- plugin),但是当我将其导入eclipse(导入->

  • 我是GWT的新手,我有一个在GWT上开发的应用程序。我需要在服务器端集成一个用python开发的程序。用python开发的应用程序必须取一个MalLab文件,然后按格式生成一些文件。PNG。目前,我对python程序进行了更改,因为它必须将文件放在特定的网址上。你是如何在服务器端将GWT应用程序与python集成的?。 python中的程序是:

  • 问题内容: 刚刚发现了Guava库项目。 这些与GWT兼容吗? 问题答案: 从该页面的介绍性PDF中, 您可以在…上使用这些库。 在JDK 6上 在Android上, 我们认为。需要志愿者来帮助我们进行测试。 在Google App Engine上, 我们认为。需要志愿者来帮助我们进行测试。 在GWT上-参差不齐! 由于GWT的JDK库支持 可能参差不齐,也许是2/3,所以到目前为止,这些库中的东

  • 问题内容: 确保GWT + Tomcat应用程序执行身份验证和授权的最佳策略是什么? 问题答案: 有两种基本策略: 确保入口点; 保护远程服务。 最简单的方法是使用常规的Web应用程序安全工具来限制对GWT生成的html / js文件的访问: 春季安全; web.xml约束。 这样可以让您拥有eg 和。 保护远程服务 如果上述解决方案还不够,您可以进行更深入的研究。我已经通过Spring Secu