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

JAX-RS Resources Initialised Erroneously

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2017.5.0
    • Fix Version/s: 2017.6.0
    • Component/s: None
    • Labels:
      None

      Description

      It appears that either the documentation is wrong or the code is when creating JAX-RS resources without an javax.ws.rs.core.Application present in the classpath. The documentation states:

      If you are building a .war-based application, you must provide the Application implementation with the appropriate @ApplicationPath annotation.

      However, the GIST in the reproduction steps is initialising although it shouldn't. I believe this is due to org.wildfly.swarm.jaxrs.internal.DefaultApplication in the jaxrs fraction. However, either the documentation should be amended to state this, or DefaultApplication removed as it's rather confusing that elements are initialised when you don't expect them to be, or is against the JAX-RS spec.. This is also true outside of the test case when launching via a Swarm uber-JAR from a WAR Maven Project.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kenfinni Ken Finnigan
                Reporter:
                dansiviter Daniel Siviter
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: