[infinispan-issues] [JBoss JIRA] (ISPN-9981) org.infinispan.jcache.embedded.JCache should use ClassLoader provided by org.infinispan.jcache.embedded.JCacheManager
Sammy Chu (Jira)
issues at jboss.org
Sun Feb 17 22:52:00 EST 2019
[ https://issues.jboss.org/browse/ISPN-9981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sammy Chu updated ISPN-9981:
----------------------------
Description:
`org.infinispan.jcache.embedded.JCache` do not call `org.infinispan.AdvancedCache.with(ClassLoader)`, so the `javax.cache.event.CacheEntryListener` and `javax.cache.event.CacheEntryEventFilter` is created using the class loader of infinispan classes. If the infinispan jars are in shared environment (e.g. installed as a Wildfly module), the user custom cache listeners/ cache entry event filters will not be able to load.
Suggest to call `org.infinispan.AdvancedCache.with(ClassLoader)` in the constructor of `org.infinispan.jcache.embedded.JCache`
was:
org.infinispan.jcache.embedded.JCache do not call org.infinispan.AdvancedCache.with(ClassLoader), so the javax.cache.event.CacheEntryListener and javax.cache.event.CacheEntryEventFilter is created using the class loader of infinispan classes. If the infinispan jars are in shared environment (e.g. installed as a Wildfly module), the user custom cache listeners/ cache entry event filters will not be able to load.
Suggest to call org.infinispan.AdvancedCache.with(ClassLoader) in the constructor of org.infinispan.jcache.embedded.JCache
> org.infinispan.jcache.embedded.JCache should use ClassLoader provided by org.infinispan.jcache.embedded.JCacheManager
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: ISPN-9981
> URL: https://issues.jboss.org/browse/ISPN-9981
> Project: Infinispan
> Issue Type: Bug
> Components: JCache
> Affects Versions: 8.2.4.Final
> Reporter: Sammy Chu
> Priority: Major
>
> `org.infinispan.jcache.embedded.JCache` do not call `org.infinispan.AdvancedCache.with(ClassLoader)`, so the `javax.cache.event.CacheEntryListener` and `javax.cache.event.CacheEntryEventFilter` is created using the class loader of infinispan classes. If the infinispan jars are in shared environment (e.g. installed as a Wildfly module), the user custom cache listeners/ cache entry event filters will not be able to load.
> Suggest to call `org.infinispan.AdvancedCache.with(ClassLoader)` in the constructor of `org.infinispan.jcache.embedded.JCache`
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the infinispan-issues
mailing list