I'm updating my spring project from 3.0.5 to 4.0.3.
Everything's building fine, but at boot time, when spring tries to create beans, I'm hitting this error message:
The class is of course not present in ehcache-core, hibernate-ehcache, or hibernate-core. In fact, the package spi
just isn't present anywhere it seems. However, I've checked the maven dependencies, and it seems like spring 4.0.3 and hibernate 3.6.10 should be fully compatible. In my pom I directly depend on hibernate-ehcache, which in turn pulls in the appropriate version of ehcache-core automatically(apparently the done thing), like this:
My dependencies look like:
I've searched extensively for this error, but can only find a couple of references to it. Given it's obscurity, I'm guessing it's a configuration within my project somewhere that's referencing this RegionFactory class, however, despite much searching, I can't find a thing.
Any ideas how I can get this project building with spring 4.0.3??
I can provide any additional data you need.
The key is to get the project building against Spring 4.0.3.Release. Whatever version of hibernate or ehcache enables me to do that doesn't really matter. Obviously My preferencs would be pom changes over reconfiguring over changing code... but I'll take what I can get at this point.
EDIT:
I'm trying to avoid updating my hibernate past 4.x.y as this project is very large and uses HibernateDaoSupport
and HibernateTemplate
very extensively (thousands of independent usages which would take a long time to refactor)
Update the Hibernate Version.
After Hibernate version 4.0.0.Final they chage the package from RegionFactory.
3.6.10.Final: org.hibernate.cache.RegionFactory 4.0.0.Final: org.hibernate.cache.spi.RegionFactory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With