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

Cannot handle more than 1 ResteasyJacksonProvider per EAR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 2.3.3.Final
    • jaxrs
    • Hide

      1. Deploy (into JBoss 7.1.3.Final) an EAR with 2 WARs, each providing their own ResteasyJacksonProvider.
      2. Hit one WAR's RESTful resource.
      3. Hit the other WAR's RESTful resource.

      I have uploaded an example EAR file with 2 WARs (including source) which produces this error for me.

      Show
      1. Deploy (into JBoss 7.1.3.Final) an EAR with 2 WARs, each providing their own ResteasyJacksonProvider. 2. Hit one WAR's RESTful resource. 3. Hit the other WAR's RESTful resource. I have uploaded an example EAR file with 2 WARs (including source) which produces this error for me.

      If you have an EAR with more than one WAR, you can only extend ResteasyJacksonProvider in one of those WARs.

      If both WARs try to include a ResteasyJacksonProvider, then whichever WAR's RESTful service you hit first works and the other fails with a RuntimeException:
      org.jboss.weld.exceptions.IllegalArgumentException: WELD-001324 Argument bean must not be null

        1. two-war-src.tgz
          1 kB
        2. test.ear
          13 kB
        3. one-war-src.tgz
          1 kB

            patriot1burke@gmail.com Bill Burke (Inactive)
            shadowcreeper_jira Ralph Jennings (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: