2 Replies Latest reply on Apr 4, 2017 3:59 AM by danielbarbarian

    ClassNotFoundException after upgrading Infinispan from 8.2.6 to 9.0.0

    danielbarbarian

      I have recently completed an implementation using Infinispan. It is a spring boot application, using JCache JSR-107 with Infinispan 8.2.6 as a provider. It is a maven project so the infinispan configuration is this:

       

      <dependency>
        <groupId>org.infinispan</groupId>
        <artifactId>infinispan-jcache</artifactId>
        <version>8.2.6.Final</version>
      </dependency>

       

      Now I decided to go for version 9.0.0 of Infinispan and hoped all I had to do was to set the version to 9.0.0.Final. Dependencies resolve fine but as soon as I start to run my unit tests again they all fail. The root cause exception is this:

       

      Caused by: java.lang.ClassNotFoundException: org.infinispan.util.logging.LogFactory

          at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

          ... 71 more

       

      I have read in the release notes and saw a note about logging having some dependency changes. So I also tried adding the below dependency but this resulted in a slf4j clash.

       

      <dependency>
         <groupId>org.infinispan</groupId>
         <artifactId>infinispan-embedded</artifactId>
      </dependency>

       

      What else would I need to do to get my application working with the latest version of Infinispan?