问题
I have followed the steps given on this page - getting-started-with-the-superdevmode
but I am still getting message - Can't find any GWT Modules on this page. I did some more googling but could not find any solution until now.
I am using GWT 2.6.1 and eclipse kepler 64 bit on ubuntu.
Here are the steps I did.
- Created a new Web app project for GAE, using GWT 2.6.1 and GAE sdk 1.9.6.
- Go to Run configurations. Create a new configuration for a "Java Application". Change the main class, Argument and add jar file as shown in the screenshot.
- Check the apps .gwt.xml file. It already has
<add-linker name="xsiframe"/>
. I have tried addingdevModeRedirectEnabled
property also. It did not help. - GWT compile the project.
Run the application as Web application. Default jetty config serves the application at
http://localhost:8888/SuperDev.html
. I opened up this page in firefox. I can see the page content.Launch the Java application configuration. It does compile again and gives a success message and tells me to launch
http://localhost:9876/
I opened it in firefox and it shows -
Dragged Dev Mode On to firefox's bookmark. And clicked.
- I get the message - Can't find any GWT Modules on this page.
Following are the configurations for my superdev mode java app. Did I miss anything?
回答1:
You need to click the bookmarklet when viewing your compiled web app.
The last steps should therefore be:
- Dragged Dev Mode On to firefox's bookmark.
- Switched back to my application at
http://localhost:8888/SuperDev.html
and clicked the bookmark
Once you have the bookmarklets, you actually don't really need to open http://localhost:9876
anymore (you'll find compile logs there, and can browser your code, including the code generated by GWT generators; so it can still be useful).
回答2:
I tried to do it with Eclipse Oxygen, Java7 (for run application, for oxygen you have to have java 8), and GWT Eclipse Plugin 3.0.0.
In such an environment all you need to do is:
On project right click > Debug As > GWT Legacy Development Mode with Jetty.
PS:
- you have to have address like this
http://127.0.0.1:8888/StockWatcher.html?gwt.codesvr=127.0.0.1:9997
NOT like :http://127.0.0.1:8888/StockWatcher.html - After openning addres you must additionally install the plugin in the browser - you will be asked for it
- It work on IE11
来源:https://stackoverflow.com/questions/24235669/gwt-superdev-cant-find-gwt-modules