1
votes

I have a multimodule gwt project that I'm able to start up and run through IntelliJ just fine. But when I go to debug the application (or actually just the act of adding ?gwt.codesvr=127.0.0.1:9997 to the end of the url) causes me to get the dreaded "Plugin failed to connect to Development Mode server at 127.0.0.1:9997.

My current setup is:

enter image description hereenter image description hereenter image description hereenter image description hereenter image description here

Entrypoint has a dependency on several portal modules. I'm unsure of what I'm doing wrong, because the portal runs fine as long as it's not through the code server..

Edit: Here is my current run configuration. I've tried everything including changing the -war directory to target\ROOT and src\main\webapp and I've changed the web facet resource folder to the same, I have no clue what I'm doing wrong.

enter image description here

Note that I've tried removing and adding the bindAddress several times. It doesn't differently either way.

1

1 Answers

2
votes

It is not your Project Structure that is at fault here. Most probably your "Run Configuration" has flaws. In "Run/Debug Configurations" you need to create "GWT Configuration" and set up properties correctly. I run with "GWT Module to load" = "All" and with "Dev Mode parameters" set to "-bindAddress 0.0.0.0" to allow accessing my debug config from various hosts, not only from localhost - you may or may not need it. Obviously, for your setup "Use Super Dev mode" should be turned off.

Also you need to check that the port 9997 is not taken up by another process. But if it is, you will see the error in Jetty's startup log in debug console. I assume if it works with Eclipse it should not be.