Hello everyone.

Anybody knows how to make Tomee/cxf return a forbidden HTTP status code 401
or 403 instead of this:

STATUS 500

java.lang.RuntimeException: org.apache.cxf.interceptor.Fault:
Unauthorized Access by Principal Denied

I manage to do this in glassfish using this:

 <init-param>
            
<param-name>com.sun.jersey.spi.container.ResourceFilters</param-name>
            
<param-value>com.sun.jersey.api.container.filter.RolesAllowedResourceFilterFactory</param-value>
 </init-param>

But Tomee is currently new-land for me.

BR

Matej

Reply via email to