Hi, this error is reported at a CXF Servlet level before the request
reaches the JAX-RS endpoint, effective CXF can not find a handler -
you can always make the JAX-RS endpoint address wildcard-wide enough to
handle 404 there. Otheriwise the only way to customize it is to have a
custom Servlet filter processing this error
Sergey
On 18/08/16 14:34, J. Fiala wrote:
Hi,
A minor detail:
If the service URL doesn't exist inside the CXF application, CXF will
return 404 + HTML, although Json was sent + accepted:
WebClient.client(api)
.type(MediaType.APPLICATION_JSON_TYPE)
.accept(MediaType.APPLICATION_JSON_TYPE);
Result:
<html><body>No service was found.</body></html>
Shouldn't the response use Json syntax?
Best regards,
Johannes
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/