title: What's the correct Maven dependencies to use Spring JMS and ActiveMQ?
body: <p>This is quite a common problem and I have found plenty solutions that do not work for me on the web. I am declaring:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.springframework&lt;/groupId&gt;
    &lt;artifactId&gt;spring-jms&lt;/artifactId&gt;
    &lt;version&gt;3.0.7.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
    &lt;groupId&gt;org.apache.activemq&lt;/groupId&gt;
    &lt;artifactId&gt;activemq-all&lt;/artifactId&gt;
    &lt;version&gt;5.5.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>And jetty plug-in</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
    &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>But I keep on getting the following exception when issuing "mvn jetty:run":</p>
  
  <blockquote>
    <p>org.springframework.beans.FatalBeanException: NamespaceHandler class
    [org.apache.xbean.spring.context.v2.XBeanNamespaceHandler] for
    namespace [http://activemq.apache.org/schema/core] not found; nested
    exception is java.lang.ClassNotFoundException:
    org.apache.xbean.spring.context.v2.XBeanNamespaceHandler</p>
  </blockquote>
  
  <p>What would be the correct maven dependencies to run Jetty, ActiveMQ and Spring JMS?</p>