Well, registering exception mapper didn't make the issue go away:
@Provider
public class DefaultExceptionMapper implements ExceptionMapper<Throwable> {
private final static Logger log =
LoggerFactory.getLogger(DefaultExceptionMapper.class);
private final static String DEFAULT_ERROR_CODE = "999"; // TODO
public Response toResponse(Throwable t) {
return
Response.status(Status.INTERNAL_SERVER_ERROR).entity(dto).type("application/xml").build();
}
As well as upgrating cxf to version 2.2.7 :-)
vanyatka wrote:
>
>
> Also, let me mention that no jaxrs:providers are registered for
> jaxrs:server
>
>
> Sergey Beryozkin-5 wrote:
>>
>> What is the signature of the method in "endpoint.HelloWorldEndpointImpl"
>> which is being tested ?
>> How does the stack trace look like and what CXF version you're using ?
>> cheers, Sergey
>>
>
>
--
View this message in context:
http://old.nabble.com/ClassCastException-prevents-thorough-endpoint-testing-tp28719118p28731178.html
Sent from the cxf-user mailing list archive at Nabble.com.