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

RestEasy Jax-RS declares WebServlet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 3.0.20.Final, 3.6.3.Final
    • jaxrs
    • None

      SCENARIO:
      Let's have an application that uses just resteasy-client (not server!)

      EXPECTED:
      None of its dependencies should declare @WebServlet

      ACTUALLY:
      resteasy-jaxrs declares (since 3.0.20.Final) org.jboss.resteasy.plugins.server.servlet.HttpServlet30Dispatcher as a @WebServlet

      Why is it a problem?
      a) Because this global servlet conflicts with some frameworks e.g. Spring MVC
      b) it's unexpected that applying a CLIENT library causes registration of SERVLET which is by it nature server-side.

      See also https://issues.jboss.org/browse/RESTEASY-1748

      A partial workaround exists:
      metadata-complete="true" in web.xml
      (but it may influence a lot of other technologies)

            Unassigned Unassigned
            lrozenblyum Leonid Roz.
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: