Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-917

auto-generated-but-unused JAX-RS Application class maps to /, which hides servlets

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2017.1.1
    • Component/s: None
    • Labels:
      None
    • Sprint:
      2016-Dec-B

      Description

      If the JAX-RS fraction is used (e.g. autodetected because of some dependency), default deployment is JAXRSArchive, because DefaultJAXRSWarDeploymentFactory has priority. This happens even if JAX-RS isn't actually used.

      The problem is that if JAX-RS isn't used, there's no JAX-RS Application class, so JAXRSArchive auto-generates the default one, which maps JAX-RS to /. If the application uses servlets, these are now hidden and can't be accessed.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bob.mcwhirter Bob McWhirter
                  Reporter:
                  lthon Ladislav Thon
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: