[ https://issues.apache.org/jira/browse/FELIX-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855919#action_12855919 ]
Karl Pauls commented on FELIX-2273: ----------------------------------- Looks like a bug. You should be able to work around this issue if you turn off our magic bootdelegation (assuming this is something you can do). Just set FelixConstants.IMPLICIT_BOOT_DELEGATION_PROP to false. Thanks for reporting. > getClassLoader-permission required accessing classes from dynamically loaded > class > ---------------------------------------------------------------------------------- > > Key: FELIX-2273 > URL: https://issues.apache.org/jira/browse/FELIX-2273 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-2.0.4 > Reporter: Reto Bachmann-Gmür > Assignee: Karl Pauls > > Using compiled scripts in clerezza as unpriledged users in clerezza yields to > the exception below, I guess felix should get the ClassLoader as priviledged > as this is not the permission one expects to need for simply using a class. > Caused by: java.security.AccessControlException: access denied > (java.lang.RuntimePermission getClassLoader) > at > java.security.AccessControlContext.checkPermission(AccessControlContext.java:342) > at > java.security.AccessController.checkPermission(AccessController.java:553) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) > at java.lang.Class.getClassLoader(Class.java:611) > at > org.apache.felix.framework.ModuleImpl.isClassNotLoadedFromBundle(ModuleImpl.java:1577) > at > org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1530) > at > org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:765) > at > org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) > at > org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733) > at java.lang.ClassLoader.loadClass(ClassLoader.java:312) > at java.lang.ClassLoader.loadClass(ClassLoader.java:264) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332) > at > exception_templatebab01985c378e091c11d7b48ae16c8fc.main(exception_templatebab01985c378e091c11d7b48ae16c8fc) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at > org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:269) > at > org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:292) > at > org.apache.clerezza.scala.service.CompiledScript.execute(CompiledScript.scala:77) > at > org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesRenderlet.render(ScalaServerPagesRenderlet.java:136) > ... 36 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira