title: Error creating bean defined in class path resource [rabbit-context.xml] from dependency
body: <p>I upgraded spring amqp &amp; rabbit version from 1.7 to 2.2.8 Release version. The build deployment fails with this error from a dependent service jar. How can this be resolved.</p>
  <pre><code>&lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.amqp&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-amqp&lt;/artifactId&gt;
                  &lt;version&gt;2.2.8.RELEASE&lt;/version&gt;
              &lt;/dependency&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.springframework.amqp&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-rabbit&lt;/artifactId&gt;
                      &lt;version&gt;2.2.8.RELEASE&lt;/version&gt;
                  &lt;/dependency&gt;
  </code></pre>
  <pre><code>Error creating bean with name 'amqpAdmin' defined in class path resource [rabbit-context.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.retry.policy.SimpleRetryPolicy.&lt;init&gt;(I)V
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
          at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
          at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226)
          at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
          at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)```
  </code></pre>