question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: Provider org.redisson.jcache.JCachingProvider not a subtype

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sam701commented, Jun 30, 2020

👍 😄 thanks, that helped. I removed cache-api-*.jar from webapp, so that there is just one implementation bundled in redisson-all-*

0reactions
sam701commented, Jul 24, 2020

😄 got it.

But honestly I ended up writing my own redis session manager. It is really tiny one with a single dependency to jedis.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found