2013-07-05 53 views
0

您好我想在gwt項目在客戶端和服務器端的休息服務,爲此,我正在使用resty gwt但我得到一個錯誤:resty gwt:延遲綁定失敗的'com.gwt.demo.client.PersonResourceAsync

com.google.gwt.event.shared.UmbrellaException: Exception caught: Deferred binding failed for 'com.gwt.demo.client.PersonResourceAsync' (did you forget to inherit a required module?).

項目描述: -

IDE: - 日食

我使用GWT resty罐子,我已經包含了從外部添加該JAR jar.I也包含在gwt.xml中,作爲(<inherits name='org.fusesource.restygwt.RestyGWT'/>)。我還將該jar添加到war文件lib文件夾中。我已經使用了一個接口來擴展restservice,在調試時在這個接口中,我發現在行中我得到了nullpointerexception。

instance = GWT.create(PersonResourceAsync.class); 

請幫我解釋爲什麼我得到這個錯誤?

回答

0

你確定restyGWT jar在你的類路徑中嗎?

你能發佈你的PersonResourceAsync的代碼嗎?它是否擴展了RestService接口?您可以看看這個tutorial