title: java.lang.NoClassDefFoundError: Could not initialize class javax.ws.rs.core.MediaType when run in eclipse
body: <p>I am getting the following error when I run 'deploy application' in eclipse with TomEE 1.7.3. The same application gets deployed successfully when I deploy it in an external TomEE 1.7.3.</p>
  
  <ul>
  <li>Eclipse Mars (4.5.0)</li>
  <li>Jdk 1.8</li>
  </ul>
  
  <p>Why would this be happening?</p>
  
  <pre><code>java.lang.NoClassDefFoundError: Could not initialize class javax.ws.rs.core.MediaType
      at com.dassault_systemes.platform.restServices.MediaProviderJSON.&lt;clinit&gt;(MediaProviderJSON.java:32)
      at com.dassault_systemes.platform.restServices.JsonTypeConvertFilter.&lt;clinit&gt;(JsonTypeConvertFilter.java:35)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  </code></pre>