GWT编译挂起 [英] GWT compile hangs

查看:70
本文介绍了GWT编译挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse(靛蓝,GWT 2.4,Linux Ubuntu)中创建了一个Google Web Toolkit项目,进行了一些更改(主要是重命名默认模块并添加了一个新模块),然后单击"GWT编译",然后什么也没有发生-编译永久停止.没有输出;右下角的进度条显示为"0%".

I created a Google Web Toolkit project in Eclipse (Indigo, GWT 2.4, Linux Ubuntu), made some changes (mainly, renamed the default module and added a new module), then clicked "GWT Compile", and then nothing happened - the compilation just hanged forever. There is no output; the progress bar at the bottom right shows "0%".

当我使用"loglevel = all"时,我得到一行输出正在检查更新",然后挂起.

When I use "loglevel=all", I get a single line of output "Checking for updates" and then it hangs.

我尝试删除缓存-没有更改.

I tried deleting the cache - no change.

我尝试创建一个新项目并复制源文件-不变.

I tried creating a new project and copying the source files - no change.

借助此链接: http://comments.gmane.org /gmane.org.google.gwt/70561 我在编译器中添加了"-XdisableUpdateCheck";现在编译已完成,但是,当我尝试以开发模式运行(运行方式-> Web应用程序")时,它显示开发模式正在加载..."并挂起.

With the help of this link: http://comments.gmane.org/gmane.org.google.gwt/70561 I added "-XdisableUpdateCheck" to the compiler; now the compile completes, but, when I try to run in development mode ("Run as -> Web application") it says "Development mode is loading..." and hangs.

我什至不知道如何开始调试它.请给我一些提示!

I don't know even how to start debugging this. Please give me some hint!

推荐答案

我遇到了类似的问题.这是我的事件顺序: 从SVN中检出了GWT项目->尝试进行Google-GWT编译->给出了入口点模块->我的日志级别是信息和输出样式已模糊-> Hit编译.为0%. 尝试过使用Google并以多种方式找出解决方案,但无法获得正确的答案. 一种技巧起作用->我从Eclipse工作区中删除了该项目,并将其从磁盘重新导入为现有项目. GWT编译这一次工作了. :)

I faced the similar issue. Here is my sequence of events for it: Checked out the GWT project from the SVN --> tried to Google-GWT Compile --> gave entry point modules --> my log level was info and output style Obfoscated -->Hit compile.. Nothing happens except the progress bar stuck at 0%. Tried to google and find out the solution in multiple ways but couldn't get the proper answer. One trick worked --> I deleted the project from the eclipse workspace and re-imported it from the disk as an existing project. GWT compile worked this time. :)

为什么起作用? ->当我们从Eclipse工作区中删除项目时,与该项目关联的所有库都将解除绑定并从类路径中删除.当您再次导入同一项目并尝试在将所需的库添加到类路径之前编译GWT时,它将起作用.真正的冲突在于GWT库和JBoss 5.0库. GWT2.4中似乎有一些普通的错误需要解决.如果您在类路径中将jboss和Web App库置于GWT库之前,则编译会卡住.

Why it worked? --> When we delete the project from eclipse workspace all the libraries associated with that project get unbound and removed from the classpath. When you again import the same project and try to compile GWT before adding the required libraries to the classpath it will works. The real conflict is with GWT libraries and JBoss 5.0 libraries. There looks like some plain bug in GWT2.4 which they need to resolve. In the classpath if you precede the jboss and Web App libraries prior to GWT library the compile gets stuck.

如果遇到类似的问题,请从类路径中删除jboss和Web应用程序库,然后编译GWT模块,然后添加这些已删除的库,以便编译项目中的JAva源代码.祝你好运!

If you face the similar issue, remove jboss and web app libraries from the classpath and compile GWT module and then add those removed libraries sothat the JAva source from your project gets compiled. Good luck!

这篇关于GWT编译挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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