Vaadin - GWT错误“模块xxx可能需要重新编译 [英] Vaadin - GWT error "module xxx may need to be recompiled

查看:139
本文介绍了Vaadin - GWT错误“模块xxx可能需要重新编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



  GWT模块'com.vaadin.terminal.gwt.DefaultWidgetSet'可能需要重新编译

I'已经尝试清理该项目无济于事。

正如我所说,我正在增加,所以我确信有一些简单的步骤我失踪或概念我没有掌握。

解决方案

我对Vaadin一无所知,但是有一个更一般的上下文, :

只要您在Eclipse中进行测试,您的应用程序的动态编码仍然是在JVM中运行的真正的Java编码。通过可通过套接字访问的调试器提供此编码。您会看到如下所示的网址:



http://127.0.0.1:8888/MyApp.html?gwt.codesvr=127.0。 0.1:9997



用这个 codesvr 这个东西是你的eclipse托管的调试器进程您的Java代码。



在您的应用程序可以独立运行之前,GWT必须将您的Java代码转换为JavaScript;针对每种浏览器类型(Firefox,WebKit,Opera,...)以及您想要支持的语言生成单独版本的代码。只有一次完成后,才能通过常用的方式访问您的应用程序:

http://127.0.0.1:8888/MyApp.html code>



在Eclipse中运行我的应用几周后,我终于忘记了编译浏览器的步骤,并想知道消息。如果不使用Ant任务,启动编译器的方法是在项目的上下文菜单中点击 Google | GWT编译。这样做,你的应用程序中的JS变得充实,你的应用程序可以在客户端没有Java的情况下运行。



当然,消息会消失。


I'm ramping up on Vaadin and I'm getting this javascript alert whenever I try and run the demo apps.

GWT module 'com.vaadin.terminal.gwt.DefaultWidgetSet' may need to be recompiled

I've tried cleaning the project to no avail.

As I said, I'm ramping up so I'm sure there's some simple step I'm missing or a concept I haven't grasped.

解决方案

I don't know anything about Vaadin, but there's a more general context in which this error occurs:

So long as you're testing in Eclipse, the dynamic coding of your app is still real Java coding being run in a JVM. This coding is made available through debugger that's accessible via a socket. You get a URL that looks like this:

http://127.0.0.1:8888/MyApp.html?gwt.codesvr=127.0.0.1:9997

with this codesvr thing being your eclipse-hosted debugger process for your Java code.

Before your app can run standalone, GWT has to translate your Java code to JavaScript; separate versions of the code are produced for each browser type (Firefox, WebKit, Opera, ...) and language that you want to support. Only once this is done can you access your app the usual way via

http://127.0.0.1:8888/MyApp.html

After weeks of running my app only in Eclipse, I'd managed to forget about the compiling-for-browsers step and wondered about the message. The way to fire up the compiler, if you're not using the Ant task, is to hit Google|GWT Compile in the project's context menu. That done, the JS in your app gets fleshed out and your app can run without Java on the client side.

And of course the message goes away.

这篇关于Vaadin - GWT错误“模块xxx可能需要重新编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆