Resteasy and Spring - howto register javax.xml.bind.ValidationEventHandler
posted 6 years ago
I've registered custom XML Mappers with javax.xml.bind.annotation.adapters.XmlAdapter. Such mapper can throw exception - the problem is, that resteasy ignores such exception. I would like to break REST call and return error to the client.
To do that I need to register javax.xml.bind.ValidationEventHandler on Marschaller/Unmarschaller.
Does anyone know how to do that with Jboss resteasy? I am using resteasy servlet to process requests, this servlet creates Marschaller/Unmarschaller somwhere inside......