Problem to use GWT client to call a Restlet web service -


i using restlet framework, , want use gwt client side. have created serverresources in restlet. here codes gwt client:

bookresourceproxy.java

public interface bookresourceproxy extends clientproxy { @get public void getbooks(result callback); }

the class use proxy:

bookresourceproxy wrp = gwt.create(bookresourceproxy.class);  wrp.getclientresource().setreference("/books");  wrp.getclientresource().getclientinfo().getacceptedmediatypes().add(new preference<mediatype>(mediatype.application_json));   wrp.getbooks(new result<string>()      {   public void onfailure(throwable caught)    {     window.alert("fail" + caught.getmessage());   }    public void onsuccess(string json)    {     window.alert(json);   } }); 

when run application, receive error:

"no source code available type org.restlet.resource.clientproxy; did forget inherit required module?"

but if inherit in .gwt.xml:

another error occurs:

unable find 'org/restlet/restlet.gwt.xml' on classpath; typo, or maybe forgot include classpath entry source? [error] line 13: unexpected exception while processing element 'inherits'

does know why?

thanks in advance!

ike

make sure using gwt edition of restlet , org.restlet.jar in gwt compiler's classpath.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -