hmm maybe try these: 1. put hibernate/ehcache in tomee/lib (avoid duplicates) and give it a try removing it from your app 2. if 1 didnt work it means your config is wrong for that version, if 1 worked it means there is a conflict 2.a you can confirm a conflict using tomee webprofile probably - since there is no ehcache there it should work 2.b best is likely to debug hibernate when loading, happy to help you on that if you setup tomee-maven-plugin in a github project easy to run
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2017-04-24 12:04 GMT+02:00 cri_sys <[email protected]>: > Yeah i am using the plus distribution: version 1.7.4 > > I tried again with the dependencies in case there is a conflict as you said > but still not success, currently ive got in my pom.xml > <dependency> > <groupId>org.hibernate</groupId> > <artifactId>hibernate-core</artifactId> > <version>4.2.21.Final</version> > </dependency> > <dependency> > <groupId>org.hibernate</groupId> > <artifactId>hibernate-entitymanager</artifactId> > <version>4.2.21.Final</version> > <exclusions> > <exclusion> > <artifactId>hibernate-core</artifactId> > <groupId>org.hibernate</groupId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>net.sf.ehcache</groupId> > <artifactId>ehcache-core</artifactId> > <version>2.4.3</version> > </dependency> > <dependency> > <groupId>org.hibernate.common</groupId> > <artifactId>hibernate-commons-annotations</artifactId> > <version>4.0.5.Final</version> > </dependency> > <dependency> > <groupId>org.hibernate</groupId> > <artifactId>hibernate-ehcache</artifactId> > <version>4.2.21.Final</version> > <exclusions> > <exclusion> > <artifactId>hibernate-core</artifactId> > <groupId>org.hibernate</groupId> > </exclusion> > </exclusions> > </dependency> > > > and in my lib folder/ > hibernate-annotations-3.5.6-Final.jar > hibernate-commons-annotations-4.0.5.Final.jar > hibernate-core-4.2.21.Final.jar > hibernate-ehcache-4.2.21.Final.jar > hibernate-entitymanager-4.2.21.Final.jar > hibernate-validator-4.3.0.Final.jar > > > i am using even same versioning, still no idea why my cache it is not > working. Any other suggestion? > Thanks > > > > -- > View this message in context: http://tomee-openejb.979440. > n4.nabble.com/Error-when-using-EH-Cache-with-Hibernate- > tp4681560p4681580.html > Sent from the TomEE Dev mailing list archive at Nabble.com. >
