简体   繁体   中英

Google Web Toolkit starter application not working

I am trying to set Google Web Toolkit up on my system in order to tinker with creating web applications. I have been following the guide at http://code.google.com/webtoolkit/doc/latest/tutorial/create.html to get some experience with the system. I have had some problems though. When I run the program in development mode (in Chromium) the page takes close to 10 seconds to load, and the send button does not do anything.

The output of the console is

Initializing AppEngine server
Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Successfully processed D:\Chris\Documents\My Dropbox\workspace\StockWatcher\war\WEB-INF/appengine-web.xml
Successfully processed D:\Chris\Documents\My Dropbox\workspace\StockWatcher\war\WEB-INF/web.xml
The server is running at http://localhost:8888/
[WARN] No file found for: /favicon.ico

And the output of the "Development Mode" is

[WARN] [stockwatcher] JSNI method '@com.google.gwt.user.client.impl.WindowImpl::initWindowCloseHandler()' returned a value of type JavaScript object(9) but was declared void; it should not have returned a value at all

[WARN] [stockwatcher] JSNI method '@com.google.gwt.user.client.impl.DOMImplStandard::initEventSystem()' returned a value of type JavaScript object(193) but was declared void; it should not have returned a value at all

Any ideas about what is causing these problems and how to fix them? I know that I can add a file "favicon.ico" to war to take care of the one warning, but I havn't had any luck with the others.

I am using Eclipse 3.5 (Galileo) and I installed the GWT plugin and SDK's as per google's guide.

Try to use another browser, I think you are using Chrome 10.0.612.1 dev. IMHO it could be caused by the WebKit update.

I have the same problem too, I just filled a bug: http://code.google.com/p/google-web-toolkit/issues/detail?id=5778

我只是猜测..您是否检查过安装到Eclipse上的GWT SDK与您在GWT项目类路径中使用的库之间的版本兼容性?

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