aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samuel Bratton (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARIES-1782) With java 2 security enabled get java.security.AccessControlException in org.apache.aries.jndi.JREInitialContextFactoryBuilder
Date Thu, 15 Feb 2018 21:38:00 GMT
Samuel Bratton created ARIES-1782:
-------------------------------------

             Summary: With java 2 security enabled get java.security.AccessControlException
in org.apache.aries.jndi.JREInitialContextFactoryBuilder
                 Key: ARIES-1782
                 URL: https://issues.apache.org/jira/browse/ARIES-1782
             Project: Aries
          Issue Type: Bug
          Components: JNDI
    Affects Versions: 1.0
         Environment: Java 2 security enabled.
            Reporter: Samuel Bratton
            Assignee: Samuel Bratton
             Fix For: 1.0


With java 2 security enabled get java.security.AccessControlException

 

Stack: java.security.AccessControlException: Access denied ("java.lang.RuntimePermission"
"getClassLoader")
java.security.AccessController.throwACE(AccessController.java:157) 
java.security.AccessController.checkPermissionHelper(AccessController.java:217) 
java.security.AccessController.checkPermission(AccessController.java:349) 
java.lang.SecurityManager.checkPermission(SecurityManager.java:562) 
com.ibm.ws.kernel.launch.internal.MissingDoPrivDetectionSecurityManager.checkPermission(MissingDoPrivDetectionSecurityManager.java:45)

java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:737) 
org.apache.aries.jndi.JREInitialContextFactoryBuilder.createInitialContextFactory(JREInitialContextFactoryBuilder.java:36)

org.apache.aries.jndi.ContextHelper.getInitialContextUsingBuilder(ContextHelper.java:233)
org.apache.aries.jndi.ContextHelper.getContextProvider(ContextHelper.java:208) 
org.apache.aries.jndi.ContextHelper.getInitialContext(ContextHelper.java:141) 
org.apache.aries.jndi.OSGiInitialContextFactoryBuilder.getInitialContext(OSGiInitialContextFactoryBuilder.java:51)

javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:695) 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:324) 
javax.naming.InitialContext.init(InitialContext.java:255) 
javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:165)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message