title: NoClassDefFoundError: com/sun/jersey/core/util/FeaturesAndProperties stack
body: <p>I have made a rest service, and now I am trying to call the same from the client end. For that I have made different dynamic web project and add all jersey jars to the WEB-INF/lib folder. I am using Jearsy(jaxrs-ri-2.23.2) version.</p>
  
  <p>Now when I run my application it give me the below error as the main root cause.</p>
  
  <blockquote>
    <p>Servlet.service() for servlet [controller.DemoServlet] in context with path [/TestingRestClient] threw exception [Servlet execution threw an exception] with root cause
    java.lang.ClassNotFoundException: com.sun.jersey.core.util.FeaturesAndProperties</p>
  </blockquote>
  
  <p>Also after scrolling upward the console I found below error too:</p>
  
  <blockquote>
    <p>Caused by: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/glassfish/jersey/client/ClientConfig</p>
  </blockquote>
  
  <p>I have searched both the errors, for the first error I have applied changes to my web.xml file. Below are the changes:</p>
  
  <pre><code>&lt;servlet&gt;
  &lt;servlet-name&gt;DemoServlet&lt;/servlet-name&gt;
  &lt;servlet-class&gt;org.glassfish.jersey.servlet.ServletContainer&lt;/servlet-class&gt;
  &lt;init-param&gt;
       &lt;param-name&gt;jersey.config.server.provider.packages&lt;/param-name&gt;
       &lt;param-value&gt;controller&lt;/param-value&gt;
  &lt;/init-param&gt;
  &lt;init-param&gt;
  &lt;param-name&gt;com.sun.jersey.api.json.POJOMappingFeature&lt;/param-name&gt;
  &lt;param-value&gt;true&lt;/param-value&gt;
  &lt;/init-param&gt;
  
  &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;DemoServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>"controller" is my package where DemoServlet class is present.And I am using the same url pattern. Is the above web.xml should be used in server end only, I have used in both ends but give same result.
   And for the second error, I found there must be Class which compiler or server is not able to find. So I check again all jar files in my lib folder, they all present ; then I add all the jar files to class build path. But still I am getting the same error. I need help. I don't know what should I do next.</p>