GWT开发模式不编译Web应用程序 [英] GWT Development Mode doesn't compile web application

查看:174
本文介绍了GWT开发模式不编译Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我想通过Run As - > GWT应用程序在eclipse中编译我的GWT应用程序时,我收到以下消息:

When I want to compile my GWT application within eclipse via "Run As -> GWT application" I get following message:


00 :00:00,005 [WARN]模块声明了一个servlet类com.google.gwt.junit.server.JUnitHostImpl,但web.xml没有相应的声明;请在您的web.xml中添加以下行:

00:00:00,005 [WARN] Module declares a servlet class 'com.google.gwt.junit.server.JUnitHostImpl', but the web.xml has no corresponding declaration; please add the following lines to your web.xml:



<servlet> <servlet-name>jUnitHostImpl</servlet-name> <servlet-class>com.google.gwt.junit.server.JUnitHostImpl</servlet-class> </servlet> <servlet-mapping> <servlet-name>jUnitHostImpl</servlet-name> <url-pattern>/AdminInterface/junithost/*</url-pattern> </servlet-mapping>

当我将这些行添加到我的web.xml时,消息不会再出现,似乎被冻结。通常在窗口顶部的启动URL上会出现一个链接,这将导致我到我的Web应用程序的页面。但它说的是计算所有的时间和过程本身不使用任何CPU时间。

When I add those lines to my web.xml the message doesn't occur anymore, but the compiler seems to be frozen. Usually there would appear a link at "Startup URL" at the top of the window, which would lead me to my web application's page. But it says "computing" all the time and the process itself doesn't use any CPU time.

有谁知道如何解决这个问题?

Does anyone know how to fix this?

推荐答案

此消息的原因是您有一个 *。gwt.xml c $ c>< inherits name =com.google.gwt.junit.JUnit/> 。没有理由直接包含该模块,当您运行 GWTTestCase 时会自动添加。

The reason for this message is that you have a *.gwt.xml that <inherits name="com.google.gwt.junit.JUnit" />. There's no reason to ever include that module directly, it'll be automatically added when you run your GWTTestCases.

gwt-maven-plugin原型已知包括这样一个模块虽然(这是我不鼓励使用原型的许多原因之一)。

The gwt-maven-plugin archetype is known to include such a module though (one of the many reasons I discourage using that archetype).

删除违规<继承> ,然后重试(并且不要将建议的servlet添加到web.xml中)。

Remove the offending <inherits> and try again (and don't add the suggested servlet to your web.xml).

这篇关于GWT开发模式不编译Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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