简体   繁体   中英

GWT not working in development mode

I am trying to run a project created with GWT. In Intellij Idea I have created a Run Configuration of type GWT Configuration with the folowing:

  • dev mode parameter:

    -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

Maybe just try using http://127.0.0.1:8080 instead of http://localhost:8080 .

Maybe you didn't add Web Facet for your IntelliJ module. You can see it in the Modules tab in the Project Structure dialog. The module should have GWT facet and Web facet under it.

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). I didn't think to mention the fact that there were multiple modules, so I guess the fault is mine :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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