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

Cannot handle more than 1 ResteasyJacksonProvider per EAR

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • 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.

    Description

      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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: