2012-02-16 3 views
0

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

[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? 

и модуль inherites в 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' /> 

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

ответ

0

Попробуйте добавить

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

к ваш главный <project>.gwt.xml он должен решить Проблемы с событиями Также попробуйте разместить GWT банки до GXT банок в вашем пути к классам

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

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

+0

Спасибо за ваш ответ, я попробовал мотив, который вы сказали, но есть все еще как то же самое. кто-то сказал мне, что проблема связана с окружающей средой, я попробую другие. и я нашел аналогичный вопрос. – thollych

0

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

удалить все банки в WEB-INF/Lib, а затем скопировать новую банку с App Engine и другие

Userful. то он работает