Re: Karaf 4.2.5 - Hibernate 5.4.2 Second level cache with JCache-Ehcache 3
never use 2l cache. Let me try to reproduce. Maybe a missing import in
hibernate osgi for ehcache packages.
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
> The application works fine if hibernate.cache.use_second_level_cache is
> but when is true there is. an: java.lang.ClassNotFoundException:
> 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 >
I have the same problem in version 4.2.6
Would you be so kind as to put the solution here if you finally find it? I
will do the same.
I have tried ehcache and infinispan, but I always get the same result.