title: Upgraded spring boot from 2.1.9 to 2.2.0 , now getting exception while starting
body: <p>I upgraded spring boot from 2.1.9 to 2.2.0 now I am facing some exception while starting the application</p>
  
  <p>java       :  openjdk11
     spring-boot:  v2.2.0.RELEASE</p>
  
  <p>I tried by deleting the jar from this below location and did mvn clean install, still no luck.</p>
  
  <p>.m2/repository/org/springframework/boot/spring-boot-actuator/2.2.0.RELEASE/spring-boot-actuator-2.2.0.RELEASE.jar</p>
  
  <p>error :</p>
  
  <pre><code>
  ***************************
  APPLICATION FAILED TO START
  ***************************
  
  Description:
  
  An attempt was made to call a method that does not exist. The attempt was made from the following location:
  
      org.springframework.cloud.client.discovery.health.DiscoveryCompositeHealthIndicator.&lt;init&gt;(DiscoveryCompositeHealthIndicator.java:41)
  
  The following method did not exist:
  
      org.springframework.boot.actuate.health.CompositeHealthIndicator.&lt;init&gt;(Lorg/springframework/boot/actuate/health/HealthAggregator;)V
  
  The method's class, org.springframework.boot.actuate.health.CompositeHealthIndicator, is available from the following locations:
  
      jar:file:/C:/Users/regosa/.m2/repository/org/springframework/boot/spring-boot-actuator/2.2.0.RELEASE/spring-boot-actuator-2.2.0.RELEASE.jar!/org/springframework/boot/actuate/health/CompositeHealthIndicator.class
  
  It was loaded from the following location:
  
      file:/C:/Users/regosa/.m2/repository/org/springframework/boot/spring-boot-actuator/2.2.0.RELEASE/spring-boot-actuator-2.2.0.RELEASE.jar
  
  
  Action:
  
  Correct the classpath of your application so that it contains a single, compatible version of org.springframework.boot.actuate.health.CompositeHealthIndicator
  </code></pre>
  
  <p>Pom.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.xxxxx.business.workflow&lt;/groupId&gt;
      &lt;artifactId&gt;xxxxx-component-workflow-starter&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
      &lt;name&gt;xxxxx-component-workflow-starter&lt;/name&gt;
      &lt;description&gt;xxxxx-component-workflow-starter&lt;/description&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;2.2.0.RELEASE&lt;/version&gt;
          &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
          &lt;java.version&gt;11&lt;/java.version&gt;
          &lt;jaxb-runtime.version&gt;2.4.0-b180830.0438&lt;/jaxb-runtime.version&gt;
          &lt;spring-cloud.version&gt;Greenwich.M1&lt;/spring-cloud.version&gt;
         &lt;zeebe-version&gt;0.20.1&lt;/zeebe-version&gt;    
          &lt;google-guava.version&gt;27.0.1-jre&lt;/google-guava.version&gt;
          &lt;xxxxx.version&gt;1.0&lt;/xxxxx.version&gt;
          &lt;swagger.version&gt;2.9.2&lt;/swagger.version&gt;
          &lt;jjwt.version&gt;0.9.1&lt;/jjwt.version&gt;
          &lt;json.version&gt;20180813&lt;/json.version&gt;
          &lt;slf4j-api.version&gt;1.7.25&lt;/slf4j-api.version&gt;
          &lt;mysql.version&gt;8.0.11&lt;/mysql.version&gt;
          &lt;mongo-java-driver.version&gt;3.10.1&lt;/mongo-java-driver.version&gt;
          &lt;commons-io.version&gt;2.6&lt;/commons-io.version&gt;
          &lt;commons-lang.version&gt;2.6&lt;/commons-lang.version&gt;
          &lt;commons-pool2.version&gt;2.5.0&lt;/commons-pool2.version&gt;
          &lt;redis.version&gt;3.1.0&lt;/redis.version&gt;
          &lt;velocity.version&gt;1.7&lt;/velocity.version&gt;
          &lt;velocity-tools.version&gt;2.0&lt;/velocity-tools.version&gt;
          &lt;logstash-logback-encoder.version&gt;5.3&lt;/logstash-logback-encoder.version&gt;
          &lt;httpclient.version&gt;4.5.6&lt;/httpclient.version&gt;
          &lt;jaxb-runtime.version&gt;2.4.0-b180830.0438&lt;/jaxb-runtime.version&gt;
          &lt;env&gt;local&lt;/env&gt;
      &lt;/properties&gt;   
  
      &lt;dependencies&gt;
          &lt;!-- Start: Spring Libraries --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-data-redis&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-starter-config&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-data-rest&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-mail&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.kafka&lt;/groupId&gt;
              &lt;artifactId&gt;spring-kafka&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-starter-netflix-eureka-client&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-starter-sleuth&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;!-- End: Spring Libraries --&gt;
  
          &lt;!-- Adding JAXB Runtime since it is not shipped with JDK 9+ --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish.jaxb&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb-runtime&lt;/artifactId&gt;
              &lt;version&gt;${jaxb-runtime.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Start: xxxxx Libraries --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.xxxxx&lt;/groupId&gt;
              &lt;artifactId&gt;xxxxx-entity&lt;/artifactId&gt;
              &lt;version&gt;${xxxxx.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.xxxxx&lt;/groupId&gt;
              &lt;artifactId&gt;xxxxx-redis&lt;/artifactId&gt;
              &lt;version&gt;${xxxxx.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.xxxxx&lt;/groupId&gt;
              &lt;artifactId&gt;xxxxx-mongo&lt;/artifactId&gt;
              &lt;version&gt;${xxxxx.version}&lt;/version&gt;
          &lt;/dependency&gt;           
          &lt;dependency&gt;
              &lt;groupId&gt;com.xxxxx&lt;/groupId&gt;
              &lt;artifactId&gt;xxxxx-util&lt;/artifactId&gt;
              &lt;version&gt;${xxxxx.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.xxxxx.model&lt;/groupId&gt;
              &lt;artifactId&gt;xxxxx-model&lt;/artifactId&gt;
              &lt;version&gt;${xxxxx.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.xxxxx.service&lt;/groupId&gt;
              &lt;artifactId&gt;xxxxx-common-service&lt;/artifactId&gt;
              &lt;version&gt;${xxxxx.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.xxxxx.service&lt;/groupId&gt;
              &lt;artifactId&gt;xxxxx-common-messaging&lt;/artifactId&gt;
              &lt;version&gt;${xxxxx.version}&lt;/version&gt;
          &lt;/dependency&gt;   
          &lt;dependency&gt;
              &lt;groupId&gt;com.xxxxx.service&lt;/groupId&gt;
              &lt;artifactId&gt;xxxxx-common-security&lt;/artifactId&gt;
              &lt;version&gt;${xxxxx.version}&lt;/version&gt;
          &lt;/dependency&gt;           
          &lt;!-- End: xxxxx Libraries --&gt;
  
          &lt;!--  Adding Zeebe client as part of the Spring Startup --&gt;     
          &lt;dependency&gt;
              &lt;groupId&gt;io.zeebe&lt;/groupId&gt;
              &lt;artifactId&gt;zeebe-client-java&lt;/artifactId&gt;
              &lt;version&gt;${zeebe-version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/com.google.guava/guava --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
              &lt;artifactId&gt;guava&lt;/artifactId&gt;
              &lt;version&gt;${google-guava.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Logstash Log Encoder --&gt;
          &lt;dependency&gt; 
              &lt;groupId&gt;net.logstash.logback&lt;/groupId&gt; 
              &lt;artifactId&gt;logstash-logback-encoder&lt;/artifactId&gt; 
              &lt;version&gt;${logstash-logback-encoder.version}&lt;/version&gt; 
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;version&gt;${mysql.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/org.mongodb/mongo-java-driver --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mongodb&lt;/groupId&gt;
              &lt;artifactId&gt;mongo-java-driver&lt;/artifactId&gt;
              &lt;version&gt;${mongo-java-driver.version}&lt;/version&gt;
          &lt;/dependency&gt;       
  
          &lt;!-- https://mvnrepository.com/artifact/commons-io/commons-io --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-io&lt;/groupId&gt;
              &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
              &lt;version&gt;${commons-io.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/commons-lang/commons-lang --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-lang&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
              &lt;version&gt;${commons-lang.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.apache.commons/commons-pool2 --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
              &lt;artifactId&gt;commons-pool2&lt;/artifactId&gt;
              &lt;version&gt;${commons-pool2.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/redis.clients/jedis --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;redis.clients&lt;/groupId&gt;
              &lt;artifactId&gt;jedis&lt;/artifactId&gt;
              &lt;version&gt;${redis.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
              &lt;version&gt;${httpclient.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Start: Swagger Libraries --&gt;
          &lt;!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.springfox&lt;/groupId&gt;
              &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
              &lt;version&gt;${swagger.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.springfox&lt;/groupId&gt;
              &lt;artifactId&gt;springfox-swagger-ui&lt;/artifactId&gt;
              &lt;version&gt;${swagger.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- End: Swagger Libraries --&gt;
  
          &lt;!-- Start: Spring Boot and Security Test Libraries --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- End: Spring Boot and Security Test Libraries --&gt;
  
      &lt;/dependencies&gt;
  
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-cloud-dependencies&lt;/artifactId&gt;
                  &lt;version&gt;${spring-cloud.version}&lt;/version&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  
      &lt;build&gt;
          &lt;finalName&gt;xxxxx-component-workflow-starter&lt;/finalName&gt;
          &lt;filters&gt;
              &lt;filter&gt;${env}-build.properties&lt;/filter&gt;
          &lt;/filters&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;filtering&gt;true&lt;/filtering&gt;
                  &lt;directory&gt;${project.basedir}/src/main/resources&lt;/directory&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.7.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;release&gt;${java.version}&lt;/release&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
                &lt;configuration&gt;
                  &lt;archive&gt;
                    &lt;manifestEntries&gt;
                      &lt;Automatic-Module-Name&gt;com.xxxxx.business.workflow.component.starter&lt;/Automatic-Module-Name&gt;
                    &lt;/manifestEntries&gt;
                  &lt;/archive&gt;
                &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;spring-milestones&lt;/id&gt;
              &lt;name&gt;Spring Milestones&lt;/name&gt;
              &lt;url&gt;https://repo.spring.io/milestone&lt;/url&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt; 
  &lt;/project&gt;
  
  </code></pre>
  
  <p>New exception :</p>
  
  <pre><code>***************************
  APPLICATION FAILED TO START
  ***************************
  
  Description:
  
  An attempt was made to call a method that does not exist. The attempt was made from the following location:
  
      org.springframework.data.rest.core.support.UnwrappingRepositoryInvokerFactory.&lt;init&gt;(UnwrappingRepositoryInvokerFactory.java:57)
  
  The following method did not exist:
  
      org.springframework.plugin.core.PluginRegistry.of(Ljava/util/List;)Lorg/springframework/plugin/core/PluginRegistry;
  
  The method's class, org.springframework.plugin.core.PluginRegistry, is available from the following locations:
  
      jar:file:/C:/Users/regosa/.m2/repository/org/springframework/plugin/spring-plugin-core/1.2.0.RELEASE/spring-plugin-core-1.2.0.RELEASE.jar!/org/springframework/plugin/core/PluginRegistry.class
  
  It was loaded from the following location:
  
      file:/C:/Users/regosa/.m2/repository/org/springframework/plugin/spring-plugin-core/1.2.0.RELEASE/spring-plugin-core-1.2.0.RELEASE.jar
  
  
  Action:
  
  Correct the classpath of your application so that it contains a single, compatible version of org.springframework.plugin.core.PluginRegistry
  </code></pre>
  
  <pre><code>***************************
  APPLICATION FAILED TO START
  ***************************
  
  Description:
  
  An attempt was made to call a method that does not exist. The attempt was made from the following location:
  
      springfox.documentation.spring.web.plugins.DocumentationPluginsManager.createContextBuilder(DocumentationPluginsManager.java:152)
  
  The following method did not exist:
  
      org.springframework.plugin.core.PluginRegistry.getPluginFor(Ljava/lang/Object;Lorg/springframework/plugin/core/Plugin;)Lorg/springframework/plugin/core/Plugin;
  
  The method's class, org.springframework.plugin.core.PluginRegistry, is available from the following locations:
  
      jar:file:/C:/Users/regosa/.m2/repository/org/springframework/plugin/spring-plugin-core/2.0.0.RELEASE/spring-plugin-core-2.0.0.RELEASE.jar!/org/springframework/plugin/core/PluginRegistry.class
  
  It was loaded from the following location:
  
      file:/C:/Users/regosa/.m2/repository/org/springframework/plugin/spring-plugin-core/2.0.0.RELEASE/spring-plugin-core-2.0.0.RELEASE.jar
  
  
  Action:
  
  Correct the classpath of your application so that it contains a single, compatible version of org.springframework.plugin.core.PluginRegistry
  </code></pre>
  
  <p>How to resolve this issue?</p>