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

Microprofile Health - Warn with resteasy on startup

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2017.12.1
    • Fix Version/s: 2018.3.3
    • Component/s: microprofile
    • Labels:
      None

      Description

      This class in Microprofile-Health :

      @DeploymentScoped
      public class InstallMonitorFilter implements DeploymentProcessor {
      
          @Inject
          public InstallMonitorFilter(Archive archive) {
              this.archive = archive;
          }
      
          @Override
          public void process() throws Exception {
              try {
                  WARArchive warArchive = archive.as(WARArchive.class);
                  warArchive.findWebXmlAsset().setContextParam("resteasy.scan", "true");
              } catch (Exception e) {
                  throw new RuntimeException("Failed to install health processor", e);
              }
          }
      
          private final Archive archive;
      }
      

      And in RestEasy :

      String scanAll = getParameter(ResteasyContextParameters.RESTEASY_SCAN);
            if (scanAll != null)
            {
               LogMessages.LOGGER.noLongerSupported(ResteasyContextParameters.RESTEASY_SCAN);
      }
      

      WARN :
      2018-01-07 09:58:18,802 WARN [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool – 40) RESTEASY002150: resteasy.scan is no longer supported. Use a servlet 3.0 container and the ResteasyServletInitializer

      It is possible to make it disappear?
      Thanks

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mkouba Martin Kouba
                Reporter:
                jonleyo Jonathan Laterreur
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: