geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwo...@apache.org
Subject svn commit: r1024508 - /geronimo/server/branches/2.2/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/keystore/FileKeystoreManager.java
Date Wed, 20 Oct 2010 03:02:35 GMT
Author: rwonly
Date: Wed Oct 20 03:02:35 2010
New Revision: 1024508

URL: http://svn.apache.org/viewvc?rev=1024508&view=rev
Log:
GERONIMO-5206 Assembly may start failed when server-security-config car is not assembled

Modified:
    geronimo/server/branches/2.2/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/keystore/FileKeystoreManager.java

Modified: geronimo/server/branches/2.2/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/keystore/FileKeystoreManager.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/keystore/FileKeystoreManager.java?rev=1024508&r1=1024507&r2=1024508&view=diff
==============================================================================
--- geronimo/server/branches/2.2/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/keystore/FileKeystoreManager.java
(original)
+++ geronimo/server/branches/2.2/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/keystore/FileKeystoreManager.java
Wed Oct 20 03:02:35 2010
@@ -101,6 +101,11 @@ public class FileKeystoreManager impleme
             throw new IllegalStateException("FileKeystoreManager must have a root that's
a local directory (not " + rootURI + ")");
         }
         directory = new File(rootURI);
+        if (!directory.exists()) {
+        	if (directory.mkdirs()) {
+        		log.warn("The keystore directory: " + directory.getAbsolutePath() + " does not
exist. System automatically created one.");
+        	}
+        }       	
         if (!directory.exists() || !directory.isDirectory() || !directory.canRead()) {
             throw new IllegalStateException("FileKeystoreManager must have a root that's
a valid readable directory (not " + directory.getAbsolutePath() + ")");
         }



Mime
View raw message