[infinispan-issues] [JBoss JIRA] (ISPN-7036) Resolve classes properly when EmbeddedContextClassResolver is initialized with null

Dan Berindei (JIRA) issues at jboss.org
Fri Sep 23 08:06:00 EDT 2016


    [ https://issues.jboss.org/browse/ISPN-7036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13297736#comment-13297736 ] 

Dan Berindei commented on ISPN-7036:
------------------------------------

What does it mean to resolve classes "properly" when we don't have a class loader? Should we just assume that all application classes are in the same classloader as the Infinispan classes?

IMO it's the application's job to set up {{GlobalConfigurationBuilder}} with a classloader, either implicitly via the thread context classloader, or explicitly via {{GlobalConfigurationBuilder.classLoader(classLoader)}}.

> Resolve classes properly when EmbeddedContextClassResolver is initialized with null
> -----------------------------------------------------------------------------------
>
>                 Key: ISPN-7036
>                 URL: https://issues.jboss.org/browse/ISPN-7036
>             Project: Infinispan
>          Issue Type: Bug
>            Reporter: Sebastian Łaskawiec
>
> Some applications set the main thread context classloader to null. This breaks the ISPN class resolver chain (EmbeddedContextClassResolver initialized with null classloader)



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the infinispan-issues mailing list