java.lang.NoClassDefFoundError: org/hibernate/cache/spi/RegionFactory - When upgrading from spring 3 to spring 4 -


i'm updating spring project 3.0.5 4.0.3.

everything's building fine, @ boot time, when spring tries create beans, i'm hitting error message:

enter image description here

the class of course not present in ehcache-core, hibernate-ehcache, or hibernate-core. in fact, package spi isn't present anywhere seems. however, i've checked maven dependencies, , seems spring 4.0.3 , hibernate 3.6.10 should compatible. in pom directly depend on hibernate-ehcache, in turn pulls in appropriate version of ehcache-core automatically(apparently done thing), this:

my dependencies like:

enter image description here

enter image description here

i've searched extensively error, can find couple of references it. given it's obscurity, i'm guessing it's configuration within project somewhere that's referencing regionfactory class, however, despite searching, can't find thing.

any ideas how can project building spring 4.0.3??

i can provide additional data need.

the key project building against spring 4.0.3.release. whatever version of hibernate or ehcache enables me doesn't matter. preferencs pom changes on reconfiguring on changing code... i'll take can @ point.

edit: i'm trying avoid updating hibernate past 4.x.y project large , uses hibernatedaosupport , hibernatetemplate extensively (thousands of independent usages take long time refactor)

update hibernate version.

after hibernate version 4.0.0.final chage package regionfactory.

3.6.10.final: org.hibernate.cache.regionfactory 4.0.0.final: org.hibernate.cache.spi.regionfactory.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -