error: Provider org.redisson.jcache.JCachingProvider not a subtype
See original GitHub issueI am running tomcat with Equinox and want to use redisson for session storage. The shared session storage works fine but I have this error in my localhost.xxx.log
.
java.util.ServiceConfigurationError: javax.cache.spi.CachingProvider: Provider org.redisson.jcache.JCachingProvider not a subtype
java.util.ServiceLoader.fail(ServiceLoader.java:239)
java.util.ServiceLoader.access$300(ServiceLoader.java:185)
java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
java.util.ServiceLoader$1.next(ServiceLoader.java:480)
javax.cache.Caching$CachingProviderRegistry$1.run(Caching.java:438)
javax.cache.Caching$CachingProviderRegistry$1.run(Caching.java:432)
java.security.AccessController.doPrivileged(Native Method)
javax.cache.Caching$CachingProviderRegistry.getCachingProviders(Caching.java:432)
javax.cache.Caching$CachingProviderRegistry.getCachingProvider(Caching.java:370)
javax.cache.Caching$CachingProviderRegistry.getCachingProvider(Caching.java:351)
javax.cache.Caching.getCachingProvider(Caching.java:142)
Here is my redisson.config.yaml
useThreadClassLoader: false
singleServerConfig:
address: "redis://redis:6379"
I am not actually interested in replacing the caching provider. I’d like to use redisson only for shared session storage.
Appreciate your ideas.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Provider org.ehcache.jcache.JCacheCachingProvider not a ...
jcache and org.slf4j jar files in Tomcat/lib. I'm getting the error: Caused by: java.util.ServiceConfigurationError: javax.cache.
Read more >jhipster/generator-jhipster - Gitter
javax.cache.spi.CachingProvider: Provider org.redisson.jcache.JCachingProvider not a subtype. but what is configured in jhipsster is Ehcache, where iss this ...
Read more >error when calling Caching.getCachingProvider
CachingProvider: Provider org.ehcache.jsr107.EhcacheCachingProvider not a subtype. at java.util.ServiceLoader.fail(ServiceLoader.java:239). at java.util.
Read more >What is JCache? - Redisson
JCache is the standard caching API (application programming interface) for the Java programming language. Developers can use JCache to temporarily cache ...
Read more >JCache bug? ISPN021015: Cache xyz-cache already registered
Launcher$AppClassLoader@58e862c/provider=org.infinispan.jcache.JCachingProvider@39c5333",component=Cache already registered INFO 22-07 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
👍 😄 thanks, that helped. I removed
cache-api-*.jar
from webapp, so that there is just one implementation bundled inredisson-all-*
😄 got it.
But honestly I ended up writing my own redis session manager. It is really tiny one with a single dependency to jedis.