Author: ruchith
Date: Thu Feb 21 03:53:23 2008
New Revision: 13964

Log:

getting rid of an e.printStackTrace()

Modified:
   trunk/solutions/identity/modules/identity-provider/conf/log4j.properties
   
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/resources.properties
   
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/sts/saml/SAMLTokenDirector.java

Modified: 
trunk/solutions/identity/modules/identity-provider/conf/log4j.properties
==============================================================================
--- trunk/solutions/identity/modules/identity-provider/conf/log4j.properties    
(original)
+++ trunk/solutions/identity/modules/identity-provider/conf/log4j.properties    
Thu Feb 21 03:53:23 2008
@@ -37,7 +37,7 @@
 log4j.logger.org.wso2=INFO
 log4j.logger.org.apache.axis2.enterprise=FATAL, WSO2WSAS_LOGFILE, 
WSO2WSAS_MEMORY
 log4j.logger.de.hunsicker.jalopy.io=FATAL, WSO2WSAS_LOGFILE, WSO2WSAS_MEMORY
-log4j.logger.org.opensaml=FATAL, WSO2WSAS_LOGFILE, WSO2WSAS_MEMORY
+log4j.logger.org.opensaml=FATAL, WSO2WSAS_LOGFILE, WSO2WSAS_MEMORY, 
WSO2WSAS_CONSOLE
 
 log4j.logger.trace.messages=TRACE,WSO2WSAS_TRACE_LOGFILE
 

Modified: 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/resources.properties
==============================================================================
--- 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/resources.properties
   (original)
+++ 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/resources.properties
   Thu Feb 21 03:53:23 2008
@@ -53,7 +53,7 @@
 errorInKeystoreAccess = Error accessing keystore
 emailNotActivated = Email Verification not activted now, but all parameters 
are saved. It will be activated when DefaultRealm is selected.
 noValueForRequestedAttribute = Value of attribute "{0}" missing
-
+SAMLTokenDirectorBootstrapError = SAMLTokenDirector bootstrap error
 
 #db errors
 createDuplicateEntity = Duplcate entity exist

Modified: 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/sts/saml/SAMLTokenDirector.java
==============================================================================
--- 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/sts/saml/SAMLTokenDirector.java
        (original)
+++ 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/sts/saml/SAMLTokenDirector.java
        Thu Feb 21 03:53:23 2008
@@ -2,13 +2,17 @@
 
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.util.UUIDGenerator;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.rahas.RahasData;
 import org.apache.xml.security.utils.Base64;
 import org.joda.time.DateTime;
 import org.opensaml.DefaultBootstrap;
 import org.opensaml.xml.ConfigurationException;
 import org.w3c.dom.Element;
+import org.wso2.solutions.identity.IdentityProviderConstants;
 import org.wso2.solutions.identity.IdentityProviderException;
+import org.wso2.solutions.identity.i18n.Messages;
 import org.wso2.solutions.identity.persistence.IPPersistenceManager;
 import org.wso2.solutions.identity.persistence.dataobject.PPIDValueDO;
 import org.wso2.solutions.identity.persistence.dataobject.RelyingPartyDO;
@@ -17,6 +21,10 @@
 
 public class SAMLTokenDirector {
 
+    private final static Log log = LogFactory.getLog(SAMLTokenDirector.class); 
+    private final static Messages messages = Messages
+            .getInstance(IdentityProviderConstants.RESOURCES);
+    
     private SAMLTokenBuilder builder = null;
     private RahasData rahasData = null;
     private IdentityProviderData ipData = null;
@@ -25,7 +33,7 @@
         try {
             DefaultBootstrap.bootstrap();
         } catch (ConfigurationException e) {
-            e.printStackTrace();
+            log.error(messages.getMessage("SAMLTokenDirectorBootstrapError"), 
e);
             throw new RuntimeException(e);
         }
     }

_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev

Reply via email to