Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-639

ClassNotFoundException: Unable to load builtin provider: org.jboss.resteasy.plugins.providers.jaxb.json.JettisonSeeAlsoProvider

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.3.1
    • None
    • None
    • Hide

      Class TestRestEasy {
      public static void main(String[] args){

      try {
      ClientRequest request = new ClientRequest("http://api.discogs.com/search?q=beatles&f=xml");
      ClientResponse<DiscogsResponse> r = request.get(DiscogsResponse.class);
      DiscogsResponse discres = r.getEntity();
      System.out.println(discres.exactResults.size());
      } catch (Exception e)

      { e.printStackTrace(); } } }

      POJOs--------------------------------

      @XmlRootElement(name = "resp")
      public class DiscogsResponse

      { @XmlAttribute(name = "stat") public String stat; @XmlAttribute(name = "version") public String version; @XmlElementWrapper(name = "exactresults") @XmlElement(name="result") public List<Result> exactResults; @XmlElementWrapper(name = "searchresults") @XmlElement(name="result") public List<Result> searchResults; }

      POJO 2-------------

      public class Result {

      @XmlAttribute
      private String num;
      @XmlAttribute
      private String type;
      @XmlElement
      private String title;
      @XmlElement
      private String uri;
      @XmlElement
      private String thumb;
      @XmlElement
      private String summary;
      }

      Show
      Class TestRestEasy { public static void main(String[] args){ try { ClientRequest request = new ClientRequest("http://api.discogs.com/search?q=beatles&f=xml"); ClientResponse<DiscogsResponse> r = request.get(DiscogsResponse.class); DiscogsResponse discres = r.getEntity(); System.out.println(discres.exactResults.size()); } catch (Exception e) { e.printStackTrace(); } } } POJOs-------------------------------- @XmlRootElement(name = "resp") public class DiscogsResponse { @XmlAttribute(name = "stat") public String stat; @XmlAttribute(name = "version") public String version; @XmlElementWrapper(name = "exactresults") @XmlElement(name="result") public List<Result> exactResults; @XmlElementWrapper(name = "searchresults") @XmlElement(name="result") public List<Result> searchResults; } POJO 2------------- public class Result { @XmlAttribute private String num; @XmlAttribute private String type; @XmlElement private String title; @XmlElement private String uri; @XmlElement private String thumb; @XmlElement private String summary; }
    • Low

      After creating a very simple RestEasy example artifact, and running it, I noticed the below Log warning:

      0 [main] WARN org.jboss.resteasy.plugins.providers.RegisterBuiltin - ClassNotFoundException: Unable to load builtin provider: org.jboss.resteasy.plugins.providers.jaxb.json.JettisonSeeAlsoProvider

      After taking a look in the package:
      org.jboss.resteasy.plugins.providers.jaxb.json

      in the resteasy-jettison-provider version I'm using:
      resteasy-jettison-provider-2.3.0.GA

      I noticed said class was not there.
      After a bit of googling, I found that the class likely does not exist.

      I assume this s somehow related to some of the resteasy provider recognition issues.

              patriot1burke@gmail.com Bill Burke (Inactive)
              krebstar01 J Theiss (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: