On 03/06/2013 10:28, Jan Bernhardt wrote:
Hi Francesco,
My issue here is that not all services are running normally with xml encoding.
Only JSON is working without problems. One example is WorkflowService:
/**
* @param kind Kind can be USER or ROLE only!
* @return Returns existing tasks for matching kind.
*/
@GET
@Path("tasks")
List<String> getDefinedTasks(@PathParam("kind") AttributableType kind);
List<String> is not supported as a XML response for a webservice request,
because JAX-B does not know how to marshal this kind of primitive data type (String
does not contain any JAX-B annotations).
It looks like that the UnitTest is only testing JSON encoding.
To verify my issue, just take a look at:
http://localhost:9080/syncope/cxf/workflows/USER/tasks.xml
You will get a response like this:
No message body writer has been found for response class ArrayList.
Ah ok,
but AFAIK this (XML) has always been problematic, even before 1.1.0:
Sergey, can you confirm?
Regards.
-----Original Message-----
From: Francesco Chicchiriccò [mailto:ilgro...@apache.org]
Sent: Montag, 3. Juni 2013 09:08
To: dev@syncope.apache.org
Subject: Re: CXF problem deploying Syncope in Glasshfish
On 03/06/2013 08:47, Jan Bernhardt wrote:
Hi Massimiliano,
I'm glad to see you found the solution yourself. Good job!
I'm currently working on SYNCOPE-286 to remove Spring MVC, my problem
here is that it looks like that a couple of recent changes to trunk have broken
the cxf build / tests.
I hope to resolve these issues by tomorrow.
Hi Jan,
which errors are you getting with CXF on trunk? I've just checked and don't
have any error when building "mvn -Pjaxrs" on core (either trunk and 1_1_X)
with both OpenJDK 1.6 and 1.7 on GNU / Linux.
Regards.
--
Francesco Chicchiriccò
ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/