简体   繁体   English

GWT无法在开发模式下工作

[英]GWT not working in development mode

I am trying to run a project created with GWT. 我正在尝试运行一个用GWT创建的项目。 In Intellij Idea I have created a Run Configuration of type GWT Configuration with the folowing: 在Intellij Idea中,我创建了以下类型的GWT配置类型的运行配置:

  • dev mode parameter: 开发人员模式参数:

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

  • server: Default 服务器:默认

When I start it prints: 当我开始打印时:

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

But when I start the server, this url does not work: 但是,当我启动服务器时,此网址不起作用:

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

An alert appears with the error: 出现错误警告:

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

Any ideas? 有任何想法吗?

Thank you, Tekin. 谢谢你,特金

You should also see a link to https://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM 您还应该看到指向https://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM的链接

Maybe just try using http://127.0.0.1:8080 instead of http://localhost:8080 . 也许只是尝试使用http://127.0.0.1:8080而不是http://localhost:8080

Maybe you didn't add Web Facet for your IntelliJ module. 也许您没有为IntelliJ模块添加Web Facet。 You can see it in the Modules tab in the Project Structure dialog. 您可以在“项目结构”对话框的“模块”选项卡中看到它。 The module should have GWT facet and Web facet under it. 该模块下应具有GWT构面和Web构面。

Thank you for your answers. 谢谢您的回答。 I finally found the problem: the application uses another application which also has a GWT facet (which I didn't create in Idea). 我终于找到了问题:该应用程序使用了另一个具有GWT构面的应用程序(我没有在Idea中创建)。 I didn't think to mention the fact that there were multiple modules, so I guess the fault is mine :) 我没想到要提到存在多个模块的事实,所以我想这是我的错:)

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

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