ошибка при создании приложения GWT после обновления GWT - PullRequest
0 голосов
/ 16 февраля 2012

после обновления GWT2.0 до GWT2.4, eclipse показывает сообщение об ошибке при сборке приложения GWT с помощью ant.вот сообщение:

[java] Compiling module com.certus.noc.noc
 [java]    Validating newly compiled units
 [java]       [ERROR] Errors in 'jar:file:/D:/EX-GWT/gwt-2.4.0/gwt-user.jar!/com/google/gwt/user/client/ui/HasDirectionalSafeHtml.java'
 [java]          [ERROR] Line 26: No source code is available for type com.google.gwt.safehtml.client.HasSafeHtml; did you forget to inherit a required module?
 [java]          [ERROR] Line 33: No source code is available for type com.google.gwt.safehtml.shared.SafeHtml; did you forget to inherit a required module?
 [java]       [ERROR] Errors in 'jar:file:/D:/EX-GWT/gwt-2.4.0/gwt-user.jar!/com/google/gwt/event/shared/SimpleEventBus.java'
 [java]          [ERROR] Line 27: No source code is available for type com.google.web.bindery.event.shared.SimpleEventBus; did you forget to inherit a required module?
 [java]          [ERROR] Line 32: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
 [java]          [ERROR] Line 32: No source code is available for type com.google.web.bindery.event.shared.Event<H>.Type<H>; did you forget to inherit a required module?
 [java]          [ERROR] Line 36: No source code is available for type com.google.web.bindery.event.shared.HandlerRegistration; did you forget to inherit a required module?
 [java]          [ERROR] Line 42: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
 [java]          [ERROR] Line 51: No source code is available for type com.google.web.bindery.event.shared.Event<H>; did you forget to inherit a required module?
 [java]       [ERROR] Errors in 'jar:file:/D:/EX-GWT/gwt-2.4.0/gwt-user.jar!/com/google/gwt/user/client/ui/DirectionalTextHelper.java'
 [java]          [ERROR] Line 32: No source code is available for type com.google.gwt.i18n.shared.HasDirectionEstimator; did you forget to inherit a required module?

и модуль наследования в файле gwt.xml

<inherits name='com.google.gwt.user.User'/>
<inherits name='com.extjs.gxt.ui.GXT'/>
<inherits name='com.extjs.gxt.desktop.WebDesktop' />
<inherits name='com.certus.noc.resources.Resources' />
<!-- Inherit the default GWT style sheet.  You can change       -->
<!-- the theme of your GWT application by uncommenting          -->
<!-- any one of the following lines.                            -->
<inherits name='com.certus.noc.resources.Resources' />
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->

<!-- Other module inherits                                      -->
<inherits name='com.extjs.gxt.themes.Themes' />

<inherits name='com.google.gwt.i18n.I18N' />
<inherits name='com.extjs.gxt.charts.Chart' />

Заранее спасибо за любой ответ

Ответы [ 2 ]

0 голосов
/ 22 февраля 2012

Я решил проблему.

удалите все банки в WEB-INF / lib, а затем скопируйте новый файл из APP Engine и других

пользователейтогда это работает

0 голосов
/ 16 февраля 2012

Попытайтесь добавить

<inherits name="com.google.web.bindery.event.Event"/>

к своему основному <project>.gwt.xml, это должно решить проблемы с событиями. Также попробуйте поместить ваши gwt jars до gxt jar в ваш classpath

И убедитесь, что HasDirectionalSafeHtml возьмите HasSafeHtml и SafeHtml из gwt-servlet-2.4.0.jar, или проверьте событие, если в вашем пути к классам существует gwt-servlet-2.4.0.jar.

Это должно решить HasDirectionalSafeHtml проблемы

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...