Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.0
-
None
-
debian etch
Description
DefaultDirectoryService.startup() should catch the AccessControlException and re-throw with more info:
- which OS uid/gid did access it? What object type was "shutDownHooks"
java.security.AccessControlException: access denied (java.lang.RuntimePermission shutdownHooks)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.Runtime.addShutdownHook(Runtime.java:188)
at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:187)
at org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialContext(AbstractContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82)