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

Refactor scopes for Servlet API jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.CR1
    • 4.0.0.Beta5
    • None

      When I added a reference to ServletContext in resteasy-core, a test in resteasy-rxjava failed because it couldn't find ServletContext. That's because the test doesn't run in Wildfly, so jboss-servlet-api_3.1_spec doesn't get provided. We're saying that resteasy-rxjava needs to have an explicit dependency on jboss-servlet-api_3.1_spec, even though it doesn't directly reference anything in jboss-servlet-api_3.1_spec.

      For RESTEasy applications running in Wildfly, jboss-servlet-api_3.1_spec is "provided" by the servlet container. For a standalone program using, say, resteasy-netty4, NettyJaxrsServer is serving as an embedded servlet container, and, by analogy, it should supply jboss-servlet-api_3.1_spec. That is, it should have a dependency on jboss-servlet-api_3.1_spec with scope "compile".

      The same change would appropriate for resteasy-netty and resteasy-undertow.

              rsigal@redhat.com Ronald Sigal
              rsigal@redhat.com Ronald Sigal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: