Proactively work around bug 6276483 by removing SunPKCS11-Solaris security provider.

See http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6276483
and http://hudson.gotdns.com/wiki/display/HUDSON/Solaris+Issue+6276483

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15292 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-02-13 17:25:14 +00:00
1 parent c397933f91
commit 5cf28bc2eb
2 files changed
+18 -3

No files matched your search

@@ -61,6 +61,7 @@ import java.net.URLClassLoader;
import java.util.Locale;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.security.Security;
/**
* Entry point when Hudson is used as a webapp.
@@ -101,6 +102,12 @@ public final class WebAppMain implements ServletContextListener {
return;
}
try {// remove Sun PKCS11 provider if present. See http://hudson.gotdns.com/wiki/display/HUDSON/Solaris+Issue+6276483
Security.removeProvider("SunPKCS11-Solaris");
} catch (SecurityException e) {
// ignore this error.
}
installLogger();
final File home = getHomeDir(event).getAbsoluteFile();