2012-02-16 4 views
0

GWT2.0をGWT2.4に更新した後、antでGWTアプリをビルドするとエラーメッセージが表示されます。 gwt.xmlファイル内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モジュールの任意の答え

答えて

0

を事前に

<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' /> 

おかげでに

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

を追加してください:ここ は、メッセージですあなたのメイン<project>.gwt.xmlそれはイベントの問題を解決する必要があります はまた、あなたのクラスパス

にGXTの瓶の前に、あなたのGWTのjarファイルを置き、gwt-servlet-2.4.0.jarがクラスパスに存在する場合HasDirectionalSafeHtmlgwt-servlet-2.4.0.jarからHasSafeHtmlSafeHtmlを取る、またはイベントチェックことを確認してみてください。

これは私が問題を解決してきたHasDirectionalSafeHtml問題

+0

あなたの返信ありがとう、私はあなたが言ったモチェットを試してみましたが、まだ同じです。誰かが問題が環境に関係していると私に言った、私は他の人を試してみます。 と私は同様の質問を見つけました。 – thollych

0

を解決する必要があります。

は、WEB-INF/libの中のすべてのjarファイルを削除してから、App Engineと他の

userfulから新しいjarファイルをコピーします。それは動作します

関連する問題