Hi, I'm working in a REST service that throws WebApplicationExcepion with custom messages. I need pass the custom exception message to the client, but it is ignored. After some search, I found that the WebApplicationExceptionMapper was the responsible for ignoring the exception message, but it has a parameter addMessageToResponse. Setting it to true while debugging on Eclipse works as expected. So my question is how do I set this parameter on TomEE config? The CXF documentation shows how to do it using Spring, but I'm using pure Java EE.
https://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-CustomizingdefaultWebApplicationExceptionmapper Thanks