2 Replies Latest reply on Jul 13, 2017 11:25 AM by John Sipher

    WFLYSRV0220 shutdown requested when web context is polled after it's registered but before the EAR finishes initializing

    John Sipher Newbie

      I have an EAR file containing several WAR files. A separate process is polling one of the web apps every 10-20 seconds. If I start WildFly before the polling process starts everything works fine, but if the polling process is running while WildFly starts WildFly logs "INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested via an OS signal" the first time it's polled after the web context is registered for the web app that responds to the poll.

       

      The log always looks like this when it fails. /myapp/util is the context for the web app that responds to the polls. The classes referenced in the next two messages are part of another web app in the same EAR.

       

      17:22:48,004 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 93) WFLYUT0021: Registered web context: /myapp/util

      17:22:48,127 INFO  [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 89) RESTEASY002225: Deploying javax.ws.rs.core.Application: class com.bla.bla.SomeRESTEasyApp

      17:22:48,128 INFO  [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 89) RESTEASY002200: Adding class resource com.bla.bla.SomeClass from Application class com.bla.bla.SomeRESTEasyApp

      17:22:48,339 INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested via an OS signal

       

      Any suggestions on ways to fix it will be appreciated. We're using WildFly-10.1.0.Final. If there's some way to force WildFly to register that web context last it might do the trick, but Google hasn't helped me with that.