-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Class conflict between Hibernate 4.3.5 and EHCache 2.8.3
PostPosted: Mon Jul 07, 2014 9:11 am 
Newbie

Joined: Wed Jan 16, 2013 6:34 am
Posts: 3
Hi,

When using Hibernate 4.3.5 and EHCache 2.8.3, the following exception occurs.
Hibernate 4.3.5 and EHCache 2.8.2 work without problems.
Any idea ?

Code:
Caused by: java.lang.NoSuchMethodError: net.sf.ehcache.util.ClassLoaderUtil.getStandardClassLoader()Ljava/lang/ClassLoader;
   at org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory.loadResource(AbstractEhcacheRegionFactory.java:202) ~[hibernate-ehcache-4.3.5.Final.jar:4.3.5.Final]
   at org.hibernate.cache.ehcache.EhCacheRegionFactory.start(EhCacheRegionFactory.java:89) ~[hibernate-ehcache-4.3.5.Final.jar:4.3.5.Final]
   at org.hibernate.internal.CacheImpl.<init>(CacheImpl.java:70) ~[hibernate-core-4.3.5.Final.jar:4.3.5.Final]


Thanks.


Top
 Profile  
 
 Post subject: Re: Class conflict between Hibernate 4.3.5 and EHCache 2.8.3
PostPosted: Tue Jul 08, 2014 10:56 am 
Newbie

Joined: Wed Jan 16, 2013 6:34 am
Posts: 3
Probably I need to exclude ehcache-core to prevent 2 versions of ehcache in my WAR :
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-ehcache</artifactId>
<version>4.2.8.Final</version>
<exclusions>
<exclusion>
<artifactId>ehcache-core</artifactId>
<groupId>net.sf.ehcache</groupId>
</exclusion>
</exclusions>
</dependency>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.