You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2010/04/12 16:38:43 UTC

[jira] Updated: (FELIX-2273) getClassLoader-permission required accessing classes from dynamically loaded class

     [ https://issues.apache.org/jira/browse/FELIX-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-2273:
-----------------------------------

    Fix Version/s: felix-3.0.0

> 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
>             Fix For: felix-3.0.0
>
>
> 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