Thanks of the suggestion, I managed to run the app after long time looking
for the solution. 
It looks that the configuration on persistance.xml was never being setter or
being overwritten.
My solution was to set:
hibernate.cache.region.factory_class =
org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
on the system.properties in the conf file from tomee.

Now the app it is running but it looks that my queries are never hitting the
cache and it is always quering the DB even though i am annotating my entity
with @Cachable and @Cache. Any suggestion?

Thanks



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/Error-when-using-EH-Cache-with-Hibernate-tp4681560p4681574.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Reply via email to