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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Out of Date
    • 2.2.2.GA
    • None
    • None
    • 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.

      Attachments

        Issue Links

          Activity

            People

              patriot1burke@gmail.com Bill Burke (Inactive)
              gdesmet@redhat.com Geoffrey De Smet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: