[ 
https://issues.apache.org/jira/browse/SLING-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971230#action_12971230
 ] 

Michael Dürig commented on SLING-1895:
--------------------------------------

Just checked: adding sun.reflect.* alone is not enough. This still results in 
NoClassDefFoundError. Adding both sun.* and sun.reflect.* makes the error 
disappear. 

> sun.reflect.MethodAccessorImpl not correctly boot delegated
> -----------------------------------------------------------
>
>                 Key: SLING-1895
>                 URL: https://issues.apache.org/jira/browse/SLING-1895
>             Project: Sling
>          Issue Type: Bug
>          Components: Launchpad
>    Affects Versions:  Launchpad Base 2.2.0
>            Reporter: Michael Dürig
>
> When running the forum sample application (Scala) I'm getting
> java.lang.NoClassDefFoundError: sun/reflect/MethodAccessorImpl
>       at sun.misc.Unsafe.defineClass(Native Method)
>       at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
>       at 
> sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at 
> sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
>       at 
> sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:59)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:28)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> By manually editing the sling.properties file in my sling folder:
> org.osgi.framework.bootdelegation=com.yourkit.*,sun.*,sun.com.*
> the error goes away. 
> Can we add the sun packages to boot delegation by default?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to