tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Blevins (JIRA)" <>
Subject [jira] [Created] (TOMEE-1148) JAX-RS, EJBAccessException should be 401
Date Sat, 22 Mar 2014 02:41:44 GMT
David Blevins created TOMEE-1148:

             Summary: JAX-RS, EJBAccessException should be 401
                 Key: TOMEE-1148
             Project: TomEE
          Issue Type: Improvement
    Affects Versions: 1.6.0
            Reporter: David Blevins

We should catch EJBAccessException and use a 401 status code instead of a 500.

Caused by: javax.ejb.EJBAccessException: Unauthorized Access by Principal Denied
	at org.apache.openejb.core.stateless.StatelessContainer.invoke(
	at org.apache.openejb.util.proxy.ProxyEJB$Handler.invoke(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(

This message was sent by Atlassian JIRA

View raw message