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

Portable wars: a war using RESTEasy should deploy to deploy jboss AS 7 and Tomcat without modifcation: it should not require to remove the WEB-INF/lib/resteasy-*.jar files on JBoss AS 7

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 2.2.2.GA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In guvnor, we're trying to create a single generic war, to deploy to any app server or servlet container.

      This war contains:
      1) WEB-INF/lib/resteasy-*.jar files
      2) this code in WEB-INF/web.xml

        <context-param>
          <param-name>resteasy.injector.factory</param-name>
          <param-value>org.jboss.resteasy.cdi.CdiInjectorFactory</param-value>
        </context-param>
      

      That generic war deploys without a problem on Tomcat and Jetty, but fails on JBoss AS 7 (with a cryptic message I might add), because 1) and 2) should be removed for JBoss only. That shouldn't be the case. It should just act as if the resteasy jars in the war file and the context-param in the web.xml file aren't there.

      Weld had a similar problem, but they already fixed it for JBoss AS 7.1: AS7-2119.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bill.burke Bill Burke
                  Reporter:
                  ge0ffrey Geoffrey De Smet
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: