Java googleappengine和Restlet
我一直在对此进行修补,试图确定restlet是否能与Google app engine配合使用以满足我的需求。到目前为止,这似乎是相当直接的,但我已经被困在一些东西上几个小时了,如果能得到一些帮助,我将不胜感激 客户端代码Java googleappengine和Restlet,java,google-app-engine,restlet,Java,Google App Engine,Restlet,我一直在对此进行修补,试图确定restlet是否能与Google app engine配合使用以满足我的需求。到目前为止,这似乎是相当直接的,但我已经被困在一些东西上几个小时了,如果能得到一些帮助,我将不胜感激 客户端代码 ClientResource cr = new ClientResource("my_gae_url"); ContactResource resource = cr.wrap(ContactResource.class); 这将返回空值 Contact contac
ClientResource cr = new ClientResource("my_gae_url");
ContactResource resource = cr.wrap(ContactResource.class);
这将返回空值
Contact contact = resource.retrieve()
但这将返回预期的json字符串
String s = cr.get(MediaType.APPLICATION_JSON).getText();
它不会返回对象,但会返回json。我不知道我是否丢失了一个jar或者我没有实现什么
I'm using Google Plugin 3.7 and app engine 1.7.2
I'm using restlet app engine edition 2.0.15
The server includes the following jars org.restlet.jar, org.restlet.ext.gwt.jar,
org.restlet.ext.servlet.jar, org.restlet.ext.jackson.jar,
org.codehaus.jackson.core.jar, org.codehaus.jackson.mapper.jar
如果重要的话,我用来测试东西的客户机是jsf,包括以下JAR
org.restlet.jar, org.restlet.ext.net.jar
您还需要在客户端添加Jackson扩展您需要在客户端添加Jackson扩展,因为Jackson扩展完成了这一任务。非常感谢!现在,如果有人能告诉我如何将一条评论标记为答案。重新输入评论作为答案。