User: starksm Date: 02/02/10 09:11:20 Modified: src/main/org/jboss/security/plugins JaasSecurityManager.java Log: Catch and ignore any exception that results when trying to lookup the current security policy as a SecurityPolicy. Revision Changes Path 1.21 +4 -4 jbosssx/src/main/org/jboss/security/plugins/JaasSecurityManager.java Index: JaasSecurityManager.java =================================================================== RCS file: /cvsroot/jboss/jbosssx/src/main/org/jboss/security/plugins/JaasSecurityManager.java,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- JaasSecurityManager.java 8 Feb 2002 23:56:19 -0000 1.20 +++ JaasSecurityManager.java 10 Feb 2002 17:11:20 -0000 1.21 @@ -53,7 +53,7 @@ @author <a href="[EMAIL PROTECTED]">Oleg Nitz</a> @author [EMAIL PROTECTED] - @version $Revision: 1.20 $ + @version $Revision: 1.21 $ */ public class JaasSecurityManager implements SubjectSecurityManager, RealmMapping { @@ -78,7 +78,7 @@ */ private CachePolicy domainCache; /** The custom JAAS policy. This may be null if a custom - policy is not being used. + policy is not being used. Currently this is unused. */ private SecurityPolicy securityPolicy; /** Used in the absence of a SecurityPolicy specific CallbackHandler @@ -147,8 +147,8 @@ { // Try to get the SecurityPolicy from the JAAS Policy class securityPolicy = (SecurityPolicy) Policy.getPolicy(); } - catch(ClassCastException e) - { // The installed Policy is not a SecurityPolicy + catch(Exception e) + { // The installed Policy is not a SecurityPolicy or some other problem } }
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development