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

ResteasyProviderFactory getInstance doesn't respect the property "resteasy.use.builtin.providers"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0-beta-2
    • 1.2.GA
    • None
    • None

      To reproduce:

      1. Configure
      Set resteasy.use.builtin.providers to false in the web.xml. Add org.jboss.resteasy.plugins.spring.SpringContextLoaderListener. Use spring to component-scan the providers. This should register a custom provider for json context finder.
      2. Start the server
      3. Request for a json resource
      4. See the request fail as no suitable message reader was found (which is fine because we turned off all the builtin providers)
      5. Generate a second request for a json resource
      6. See this request succeed as suddenly the inbuilt message readers, providers, context finders are registered in the default factory.

            patriot1burke@gmail.com Bill Burke (Inactive)
            ppurang p purang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: