开发者

plugin failed to connect to development mode server at 127.0.0.1

开发者 https://www.devze.com 2023-04-03 05:24 出处:网络
I am using GWT 2.3.0 as a plugin for Eclipse to develop a web based application Unfortunately, when I try to run my application I get:

I am using GWT 2.3.0 as a plugin for Eclipse to develop a web based application

Unfortunately, when I try to run my application I get:

plugin failed to connect to developer mode server at 127.0.0.1:9997

开发者_如何学JAVAand

onModuleLoad() threw an exception :java.lang.reflect.InvocationTargetException

I have installed the Gwt developer plugin for Google Chrome and every time I run my project it requires me to install this plugin and restart the browser, after which I get the above mentioned problem.


You can solve this issue by:

  1. Right click on your web project -> Run as -> Run configurations.

  2. Select 'Server' and 'GWT' tabs respectively and check on 'Automatically select an unused port'

  3. Clear Cache from your Chrome browser (do the same on Firefox if you are using Firefox, remember the GWT plugin is not available on the latest Firefox versions, 3-10 I believe).

  4. Run and hopefully enjoy.


I know it's an old question but, I ran into the same problem today.

For some reason (quite unknown to me) deleting the ":9997" from the end of the address fixed it, and the application came up nicely.

Hope this helps.


Look at http://notepad2.blogspot.com/2010/12/debug-google-web-toolkit-applications.html for a step by step instruction on how to set up chrome, particularly the last part on how to setup the plugin using an external web server.


For the first problem that you faced : plugin failed to connect to developer mode server at 127.0.0.1:9997 , just clear your browser cache and try once again.


Just happend to me today too, and I've managed to fix it:

It turns out that the set of the GWT modules to be loaded is configureable; by referring to one of the GWT html's from the browser, it appears I was actually trying to connect to a page under a module that has been removed from the run-config's modules list. So, one more thing to do is to verify the list's content:

In eclipse: "Run Configurations" > Web Application > (your app) > GWT tab > Available Modules

In IntelliJ (that's what I've used): Edit Configurations > (select your GWT config) > GWT Modules to load


The GWT Plugin may be need to restarted

First Clear Browser cash Second : try the following on chrome browser -

  1. open : chrome://extensions/
  2. Go to : GWT Developer Plugin
  3. uncheck the Enabled box
  4. check the Enabled box

Open URL again and have fun :)


I fixed the issue by only clearing the browser cache. I am working with Firefox 15.0.1

0

精彩评论

暂无评论...
验证码 换一张
取 消