Thank Sergey. I answer you below
2014-02-10 12:37 GMT+01:00 Sergey Beryozkin <[email protected]>: > Hi > > In CXF 2.7.3 you should use JAX-RS ExceptionMapper, I've read in http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-Exceptionhandling "Starting from CXF 2.7.8 it is also possible to use registered ExceptionMappers to map the exceptions thrown from CXF server[...]In earlier CXF versions such exceptions are only possible to handle with CXF fault in interceptors." Anyway, I tried it and that works. >> >> >> 10:25:19.823 [http-8080-3] WARN [AbstractJAXBProvider] >> [handleExceptionStart] - javax.xml.bind.UnmarshalException >> - with linked exception: >> [org.xml.sax.SAXParseException: cvc-pattern-valid: Value 'xxxxx' is >> not facet-valid >> > Do you mean you custom out fault interceptor is not even invoked ? Register > it in jaxrs:outFaultInterceptors, you should get it invoked, > but try the exception mappers if you can > Right. If I configure that interceptor (http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/CustomOutFaultInterceptor.java) as out fault interceptor , it's never invoked after schema validation fails. I don't know why. Maybe is captured by a previous out fault interceptor and it's not propagate Thanks > Sergey > >> >> any ideas ? any example ? >> >> >> Regards >> >
