title: NoClassDef Exception in Java using Jersey and Moxi
body: <p>I'm new to Jersey, I got the app Up and running, However when I tried to use moxy for Json Processing I got stuck. I have overcome several problem. No after adding these two JARS:</p>
  
  <ul>
  <li>jersey-media-moxy-2.7</li>
  <li>jersey-entity-filtering-2.3 </li>
  </ul>
  
  <p>I get the following error:</p>
  
  <pre><code>    Apr 15, 2014 10:20:34 AM org.apache.catalina.core.StandardWrapperValve invoke
  SEVERE: Allocate exception for servlet jersey-serlvet
  java.lang.NoClassDefFoundError: org/glassfish/jersey/moxy/json/internal/ConfigurableMoxyJsonProvider
      at org.glassfish.jersey.moxy.json.MoxyJsonFeature.configure(MoxyJsonFeature.java:79)
      at org.glassfish.jersey.model.internal.CommonConfig.configureFeatures(CommonConfig.java:680)
      at org.glassfish.jersey.model.internal.CommonConfig.configureMetaProviders(CommonConfig.java:610)
      at org.glassfish.jersey.server.ResourceConfig.configureMetaProviders(ResourceConfig.java:800)
      at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:385)
      at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:162)
      at org.glassfish.jersey.server.ApplicationHandler$3.run(ApplicationHandler.java:322)
      at org.glassfish.jersey.internal.Errors$2.call(Errors.java:289)
      at org.glassfish.jersey.internal.Errors$2.call(Errors.java:286)
      at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:286)
      at org.glassfish.jersey.server.ApplicationHandler.&lt;init&gt;(ApplicationHandler.java:319)
      at org.glassfish.jersey.server.ApplicationHandler.&lt;init&gt;(ApplicationHandler.java:284)
      at org.glassfish.jersey.servlet.WebComponent.&lt;init&gt;(WebComponent.java:311)
      at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:168)
      at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:358)
      at javax.servlet.GenericServlet.init(GenericServlet.java:158)
      at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:864)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:134)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>Your help is much appreciated. I'm not using maven or any other build or dependency tool.</p>