|
From: Heiko W.R. <hr...@re...> - 2011-11-13 21:47:18
|
Hi,
I am running into those
Could not find MessageBodyWriter for response object of type: java.util.ArrayList of media type: application/xml
with whatever provider when I do
Response foo() {
List<MyType> x = new ArrayList<MyType>();
...
return Response.ok(x).build();
}
while
List<MyType> foo() {
List<MyType> x = new ArrayList<MyType>();
...
return x;
}
works like a charm.
While the latter is more obvious to write, I'd like to use the former to be able to pass additional info like
etags and so on.
Is this a known issue? Or am I just doing it wrong?
Thanks
Heiko
--
Reg. Adresse: Red Hat GmbH, Technopark II, Haus C,
Werner-von-Siemens-Ring 14, D-85630 Grasbrunn
Handelsregister: Amtsgericht München HRB 153243
Geschaeftsführer: Brendan Lane, Charlie Peters, Michael Cunningham, Charles Cachera
|