繁体   English   中英

GWT无法在开发模式下工作

[英]GWT not working in development mode

我正在尝试运行一个用GWT创建的项目。 在Intellij Idea中,我创建了以下类型的GWT配置类型的运行配置:

  • 开发人员模式参数:

    -noserver -bindAddress 127.0.0.1 -codeServerPort 9997 -war D:\\ projects \\ greensoft \\ trunk \\ out \\ artifacts \\ sd_extern_war_exploded

  • 服务器:默认

当我开始打印时:

Connected to the target VM, address: '127.0.0.1:60552', transport: 'socket'
Nov 28, 2014 12:45:31 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Dev Mode initialized. Startup URLs: 
http://127.0.0.1:8888/chestionar.html?gwt.codesvr=127.0.0.1:9997
http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997

但是,当我启动服务器时,此网址不起作用:

http://localhost:8080/sd-extern/chestionar.html?gwt.codesvr=127.0.0.1:9997

出现错误警告:

Plugin failed to connect to Development Mode server at 127.0.0.1:9997

有任何想法吗?

谢谢你,特金

您还应该看到指向https://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM的链接

也许只是尝试使用http://127.0.0.1:8080而不是http://localhost:8080

也许您没有为IntelliJ模块添加Web Facet。 您可以在“项目结构”对话框的“模块”选项卡中看到它。 该模块下应具有GWT构面和Web构面。

谢谢您的回答。 我终于找到了问题:该应用程序使用了另一个具有GWT构面的应用程序(我没有在Idea中创建)。 我没想到要提到存在多个模块的事实,所以我想这是我的错:)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM