title: CXF ClassNotFoundException: javax.ws.rs.MessageProcessingException
body: <p>I'm trying to start a jax ws &amp; rs server endpoints, I can get them started using rs-api 2.0 (and version 2.0.1) but when I try to make a request it throws</p>
  
  <pre><code>java.lang.NoClassDefFoundError: javax/ws/rs/MessageProcessingException  
  </code></pre>
  
  <p>There are some other threads in SO regarding this matter but the suggestions don't work for me.  Using any of the rs-api 2 milestone versions throws issues </p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: javax/ws/rs/BadRequestException
  </code></pre>
  
  <p>I'm running this as a java application, not a webapp.  Anyone have any ideas to try? Thanks</p>
  
  <p>EDIT: My dependencies. I added jsr311 but that did not change the MessageProcessingException</p>
  
  <pre><code> &lt;dependency&gt;
          &lt;groupId&gt;org.json&lt;/groupId&gt;
          &lt;artifactId&gt;json&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-c3p0&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;postgresql&lt;/groupId&gt;
          &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      CXF: version 2.7.0
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-frontend-jaxws&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-frontend-jaxrs&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-transports-http&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-transports-http-jetty&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-ws-security&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      rs-api version: 2.0
      &lt;dependency&gt;
          &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
          &lt;artifactId&gt;javax.ws.rs-api&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      jsr311 version: 1.1.1
      &lt;dependency&gt;
          &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
          &lt;artifactId&gt;jsr311-api&lt;/artifactId&gt;
      &lt;/dependency&gt;
  </code></pre>