You are facing the same problem as described in this answer.
In your specific case, the Hibernate JARs are loaded by a classloader that is an ancestor of the classloader that loads hibernate-ehcache-4.2.8.Final.jar
. Thus these classes cannot see org.hibernate.cache.ehcache.*
.
The solution would be to create a module for EHCache and use that module, instead of including the jar in WEB-INF/lib.