title: java.lang.NoSuchFieldError: WADL_JSON in creating jersey rest client
body: <p>I am creating <code>jersey rest</code> client with <code>jackson pojo mapping</code>. 
  here is code spinet:</p>
  
  <pre><code>    ClientConfig clientConfig = new DefaultClientConfig();
      clientConfig.getClasses().add(JacksonJsonProvider.class);
      clientConfig.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE);
      client = Client.create(clientConfig);
      webResource = client.resource("url to exposed rest web service");
  </code></pre>
  
  <p>This code is throwing following exception at line <code>client = Client.create(clientConfig)</code></p>
  
  <pre><code>Sep 01, 2014 12:42:04 PM com.sun.jersey.core.spi.component.ProviderFactory __getComponentProvider
  SEVERE: The provider class, class com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$Wadl, could not be instantiated. Processing will continue but the class will not be utilized
  java.lang.NoSuchFieldError: WADL_JSON
      at com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$Wadl.&lt;init&gt;(JSONRootElementProvider.java:138)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at com.sun.jersey.core.spi.component.ComponentConstructor._getInstance(ComponentConstructor.java:161)
      at com.sun.jersey.core.spi.component.ComponentConstructor.getInstance(ComponentConstructor.java:141)
      at com.sun.jersey.core.spi.component.ProviderFactory.__getComponentProvider(ProviderFactory.java:163)
      at com.sun.jersey.core.spi.component.ProviderFactory.getComponentProvider(ProviderFactory.java:134)
      at com.sun.jersey.core.spi.component.ProviderServices.getComponent(ProviderServices.java:232)
      at com.sun.jersey.core.spi.component.ProviderServices.getProvidersAndServices(ProviderServices.java:149)
      at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:153)
      at com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:145)
      at com.sun.jersey.api.client.Client.&lt;init&gt;(Client.java:275)
      at com.sun.jersey.api.client.Client.&lt;init&gt;(Client.java:150)
      at com.sun.jersey.api.client.Client.create(Client.java:476)
      at com.snapdeal.rnrs.client.RClient.&lt;init&gt;(RClient.java:29)
      at com.snapdeal.rnrs.client.RestClient.main(RestClient.java:45)
  
  Sep 01, 2014 12:42:04 PM com.sun.jersey.core.spi.component.ProviderFactory __getComponentProvider
  SEVERE: The provider class, class com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$Wadl, could not be instantiated. Processing will continue but the class will not be utilized
  java.lang.NoSuchFieldError: WADL_JSON
      at com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$Wadl.&lt;init&gt;(JSONRootElementProvider.java:138)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at com.sun.jersey.core.spi.component.ComponentConstructor._getInstance(ComponentConstructor.java:161)
      at com.sun.jersey.core.spi.component.ComponentConstructor.getInstance(ComponentConstructor.java:141)
      at com.sun.jersey.core.spi.component.ProviderFactory.__getComponentProvider(ProviderFactory.java:163)
      at com.sun.jersey.core.spi.component.ProviderFactory.getComponentProvider(ProviderFactory.java:134)
      at com.sun.jersey.core.spi.component.ProviderServices.getComponent(ProviderServices.java:232)
      at com.sun.jersey.core.spi.component.ProviderServices.getProvidersAndServices(ProviderServices.java:149)
      at com.sun.jersey.core.spi.factory.MessageBodyFactory.initWriters(MessageBodyFactory.java:171)
      at com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:146)
      at com.sun.jersey.api.client.Client.&lt;init&gt;(Client.java:275)
      at com.sun.jersey.api.client.Client.&lt;init&gt;(Client.java:150)
      at com.sun.jersey.api.client.Client.create(Client.java:476)
      at com.snapdeal.rnrs.client.RClient.&lt;init&gt;(RClient.java:29)
      at com.snapdeal.rnrs.client.RestClient.main(RestClient.java:45)
  </code></pre>
  
  <p>I am using following jars:</p>
  
  <blockquote>
    <p>jackson-core-asl:1.9.13<br>
    jackson-jaxrs:1.9.13<br>
    jackson-xc:1.9.13<br>
    jersey-client:1.1.5.1   </p>
  </blockquote>
  
  <p>I am fed up searching <code>google and stackoverflow</code>, but could not find any solution. Please suggest some solution if any one faced the same error and solved the problem.</p>