On 11/12/12 03:17, Ivan.Latysh wrote:
Sergey Beryozkin-5 wrote
<cxf:outFaultInterceptors>
<ref bean="faultOutInterceptor"/>
</cxf:outFaultInterceptors>
should do it.
Let me know if it works please.
By the way, I think CXF JAX-RS should ship a utility out fault
interceptor which will let use the exception mappers to convert the
escaped exceptions too, I'll look into it later
Cheers, Sergey
fault interceptors do not catch the fault either. See
http://cxf.547215.n5.nabble.com/inFaultInterceptors-are-not-invoked-td5719836.html
That refers to the in fault interceptors and as I said they will not be
called on the server side, this is why the "outFaultInterceptors"
section as typed above has to be used...
Exception mapper can be registered on a jaxrs:server, when I need to have a
unified way across all servers across all application modules, so I have to
register it on a bus.
Sure - using out fault interceptors can work OK; the utility out fault
interceptor I'm referring to can in principle be configured with the
same shared exception mapper too
Sergey
--
View this message in context:
http://cxf.547215.n5.nabble.com/Intercepting-exceptions-on-the-server-side-tp5719964p5720016.html
Sent from the cxf-user mailing list archive at Nabble.com.