I am getting this exception:

Constructor threw exception; nested exception is java.lang.NoSuchMethodError: net.sf.ehcache.config.CacheConfiguration.<init>(Ljava/lang/String;I)V]

We are using the following dependencies:

<dependency>
    <groupId>net.sf.ehcache</groupId>
    <artifactId>ehcache</artifactId>
    <version>2.10.8</version>
</dependency>
<dependency>
    <groupId>com.googlecode.ehcache-spring-annotations</groupId>
    <artifactId>ehcache-spring-annotations</artifactId>
    <version>1.1.2</version>
    <exclusions>
        <exclusion>
            <groupId>net.sf.ehcache</groupId>
            <artifactId>ehcache-core</artifactId>
        </exclusion>
    </exclusions>
</dependency>

How do I fix this?

0

There are 0 best solutions below