Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8586

Warning "WFLYRS0015: No Servlet declaration found for JAX-RS application." raised for non-JAX-RS submodules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 11.0.0.Alpha1
    • Fix Version/s: 11.0.0.Beta1
    • Component/s: REST
    • Labels:
      None

      Description

      When deploying my application (ear with a couple of jar and war files) on Wildfly 11.0.0.Beta1-SNAPSHOT I get warnings like this one for all the war files:

      WARN  [org.jboss.as.jaxrs#deploy] WFLYRS0015: No Servlet declaration found for JAX-RS application.  In ws-common.war either provide a class that extends javax.ws.rs.core.Application or declare a servlet class in web.xml.  
      

      When deploying the same ear file on a Wildfly 10.1. this warning message does not appear.

      Those war files raising the warnings do not contain RESTful Webservices, only SOAP based Webservices, and therefore do not need either servlet or class.
      Only 2 sub modules contain RESTful Webservices and have a class extending javax.ws.rs.core.Application.
      Following jaikiran's analysis, the existence of at least one JAX-RS subdeployment triggers the warning message for all other web modules in the war.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              asoldano Alessio Soldano
              Reporter:
              lafr Frank Langelage (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: