On 17/01/14 16:44, nikosdim wrote:
I have CXF 3.0.0-milestone1.
I deleted the property map.cxf.interceptor.fault from my xml file.
Still does not invoking my exception mapper.
Works for me as expected. I have a test where a custom in interceptor at
PRE_INVOKE throws WebApplicationException and it is mapped to a default
WebApplicationException.
I changed the interceptor to run at PRE_LOGICAL and registered a custom
mapper and all works as expected.
I can think of only one possible reason it does not work for you:
- in CXF 3.0.0 a rather problematic spec text is enforced by default (to
get past some of early TCK tests):
if you throw a custom WebApplicationException with Response containing
some text then the mappers will be ignored by default - do you do it in
your code ?
Sergey
--
View this message in context:
http://cxf.547215.n5.nabble.com/Custom-Response-from-handleFault-JAX-RS-tp5738651p5738726.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com