Hi there!
I have a project that uses GWT-RPC and I thought I'd look into swapping over to our REST services that are available, but currently not being used. Unfortunately, I seem to be having trouble getting my project to compile with resty-gwt. I recently upgraded to GWT 2.8.1 and am developing in Eclipse.
First I updated the dependencies to pull down the requisite jars (Ivy.xml):
<!-- Resty GWT -->
<dependency org="org.fusesource.restygwt" name="restygwt" rev="2.2.0" transitive="true" conf="*->*" />
Next, the appropriate entries in the gwt.xml file:
<!-- Resty GWT -->
<inherits name="org.fusesource.restygwt.RestyGWT"/>
<inherits name="com.github.nmorel.gwtjackson.GwtJackson" />
<set-property name="restygwt.encodeDecode.useGwtJackson" value="true" />
Next, a simple service:
import javax.ws.rs.GET;
import org.fusesource.restygwt.client.MethodCallback;
import org.fusesource.restygwt.client.RestService;
public interface MyService extends RestService {
@GET
public void getHelloWorld(MethodCallback<String> callback);
}
Then on to creating the service object:
Resource resource = new Resource(GWT.getModuleBaseURL());
MyService cmfS = GWT.create(ConfigurationManagementService.class);
((RestServiceProxy)cmfS).setResource(resource);
The Resource URL won't be correct, but just trying to compile at this point.
When I start up Super Dev Mode I get numerous warnings in the form of:
Resolving com.fasterxml.jackson.annotation.JacksonAnnotationsInside
Found type 'com.fasterxml.jackson.annotation.JacksonAnnotationsInside'
[WARN] Ignoring unresolvable annotation type com.fasterxml.jackson.annotation.JacksonAnnotation
And compilation fails similarly:
snip
Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JacksonAnnotationsInside
snip
Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.annotation.JacksonAnnotationsInside
I'm guessing this would be a relatively simple problem to address, however the solution escapes me and I seem to be stuck unable to even get a fairly simple use of resty-gwt to compile. Is there something simple I am missing here?
Thanks for any insights!