Hi Kleber, never use 2l cache. Let me try to reproduce. Maybe a missing import in hibernate osgi for ehcache packages.
Regards JB On 08/05/2019 22:52, Kleber Ayala wrote: > 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 > > Thanks > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
