I've got a few questions which I hope you can help me with.
Some of them may seem obvious, but I've spent the morning reading documentation
and trying out code and I'm only making slow progress.
What I'm trying to achieve.
A GWT application, running in hosted mode (for the moment) using Restlet to
replace the default server communication RPC with an XML transport mechanism.
I started off by converting the existing services, for example
LoginScreen declares a loginService using GWT.create to instantiate it.
LoginService extends ServerResource implements LoginResource
interface LoginResource
@Post()
public LoginResult login(LoginBean bean);
interace LoginProxy extends ClientProxy
@Post
public void login(LoginBean bean, Result<LoginResult> result);
This works fine, but it's still using GWT serialisation.
I then changed @Post(), to read @Post("xml") on the server class and
interfaces. I now get an error.
It doesn't help that the example code downloaded from the 2.1 wiki still
contains 2.0snapshot jar files! It still makes reference to GWTServletWrapper,
which no longer exists in the 2.1 codebase! Very confusing.
Since then I've added the META-INF/services folder and ConverterHelper text
file with the XStream converter registered.
I've removed the "xml" from @Post and I'm now getting this exception;
NoClassDefFoundError JettisonMappedXmlDriver
I assume I'm missing another jar file...
The jar files are a bit confusing as well, the GWT download contains only 3,
I've had to take other jar files from the JEE download in order to get this
working at all...
Is it even possible to do what I'm trying to do?
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2709303