Details
Description
We are using CXF and the JAXRS component to build our next generation application based on REST services. Recently we have a very hard time debugging REST requests that fail with a 500 response. We find that the failures are due to our own issues with JAXB marsharlling but it is very hard to discover because JAXRS and CXF do not report/log the exceptions caught from JAXB.
JAXB errors seem to be caught by the framework in JAXRSInIntercepter.handleMessage(). Please add some logging to the catch block. Right now all it does is create a fault response for the client that has very little information about the actual root cause.
This may seem like a small change but it would help us immensely in our development process with CXF.
I would also request that you review your error handling in general and determine if appropriate logging is in place.