[shrinkwrap-issues] [JBoss JIRA] Commented: (SHRINKWRAP-242) Get shrinkwrap to work from inside and OSGi framework

David Bosschaert (JIRA) jira-events at lists.jboss.org
Thu Nov 11 08:11:01 EST 2010


    [ https://jira.jboss.org/browse/SHRINKWRAP-242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562815#action_12562815 ] 

David Bosschaert commented on SHRINKWRAP-242:
---------------------------------------------

When calling:
  JavaArchive archive = archiveFactory.create(JavaArchive.class, "myarchive");
from inside an OSGi bundle I find myself in SecurityActions.newInstance() which contains:
         final ClassLoader tccl = getThreadContextClassLoader();
         final Class<?> implClass = Class.forName(className, false, tccl);
         Constructor<?> constructor = getConstructor(implClass, argumentTypes);
         obj = constructor.newInstance(arguments);
So that still uses the TCCL. It would be ideal if the ExtensionLoader could provide the classloader to use here. Is that possible somehow given SHRINKWRAP-234? 


> Get shrinkwrap to work from inside and OSGi framework
> -----------------------------------------------------
>
>                 Key: SHRINKWRAP-242
>                 URL: https://jira.jboss.org/browse/SHRINKWRAP-242
>             Project: ShrinkWrap
>          Issue Type: Task
>    Affects Versions: 1.0.0-alpha-11
>            Reporter: David Bosschaert
>            Assignee: David Bosschaert
>
> Currently there are issues around the use of Shrinkwrap in an OSGi framework. The libraries don't contain the necessary Manifest headers and just adding them causes classloading problems as the TCCL is used during the boot process.
> Shrinkwrap should be usable from within OSGi.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list