Hi Karaf users.

Is there any way to use 2L cache with karaf / hibernate 5.4.2 / Ehcache 3/ 
Jcache?

I´m trying to enable 2l cache but no luck, I'm not sure it is a 
misconfiguration or a bug on hibernate-osgi or karaf.

Hibernate 5.4.2
Karaf 4.2.5
Ehcache 3
Jcache


The application works fine if hibernate.cache.use_second_level_cache is false, 

but when is true there is. an:  java.lang.ClassNotFoundException: 
org.ehcache.jsr107.EhcacheCachingProvider

If I use 2l cache with Ehcache 2 works, but with some warnings  suggesting to 
use Ehcache 3/jcache.



A simple "hello world” project with more details to reproduce the issue is on 
https://github.com/klebeer/karaf-hibernate2Lcache-bug 
<https://github.com/klebeer/karaf-hibernate2Lcache-bug>

Thanks

Reply via email to