Hi all,
I'm currently creating a Jax-RS webservice that receives and produces XML which is mapped to JAXB objects.
Now I'm trying to handle the case when an invalid request is posted to the service. I would like to generate a XML response document with some detailed error information.
I tried to create an ExeptionMapper javax.xml.bind.UnmarshalException but this is not called. It seems the Exception is wrapped in a JAXBUnmarshalException of Resteasy. Now the question is how can I handle this without importing any classes of JBoss. Since the project has to be compatible with multuiple containers this is unfortunately not an option.
best regards
Phil