GWT无法在开发模式下工作

时间:2014-11-28 12:18:29

标签: java gwt intellij-idea

我正在尝试运行使用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

有什么想法吗?

谢谢你, 特勤。

3 个答案:

答案 0 :(得分:0)

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

的链接

也许只是尝试使用http://127.0.0.1:8080代替http://localhost:8080

答案 1 :(得分:0)

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

答案 2 :(得分:0)

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

相关问题