[jboss-cvs] JBossAS SVN: r77863 - branches/JBPAPP_4_3_0_GA_CP02_JBPAPP-1164/ejb3/src/main/org/jboss/ejb3/security.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Sep 3 16:16:03 EDT 2008


Author: mmoyses
Date: 2008-09-03 16:16:03 -0400 (Wed, 03 Sep 2008)
New Revision: 77863

Modified:
   branches/JBPAPP_4_3_0_GA_CP02_JBPAPP-1164/ejb3/src/main/org/jboss/ejb3/security/Ejb3AuthenticationInterceptor.java
Log:
JBPAPP-1164: setting the GeneralSecurityException as the cause of EJBAccessException

Modified: branches/JBPAPP_4_3_0_GA_CP02_JBPAPP-1164/ejb3/src/main/org/jboss/ejb3/security/Ejb3AuthenticationInterceptor.java
===================================================================
--- branches/JBPAPP_4_3_0_GA_CP02_JBPAPP-1164/ejb3/src/main/org/jboss/ejb3/security/Ejb3AuthenticationInterceptor.java	2008-09-03 19:01:23 UTC (rev 77862)
+++ branches/JBPAPP_4_3_0_GA_CP02_JBPAPP-1164/ejb3/src/main/org/jboss/ejb3/security/Ejb3AuthenticationInterceptor.java	2008-09-03 20:16:03 UTC (rev 77863)
@@ -65,7 +65,9 @@
    protected void handleGeneralSecurityException(GeneralSecurityException gse)
    {
       log.debug("Authentication failure", gse);
-      throw new EJBAccessException("Authentication failure");
+      EJBAccessException eae = new EJBAccessException("Authentication failure");
+      eae.initCause(gse);
+      throw eae;
    }
 
    public Object invoke(org.jboss.aop.joinpoint.Invocation invocation) throws Throwable




More information about the jboss-cvs-commits mailing list