Details
-
Bug
-
Status: Closed (View Workflow)
-
Optional
-
Resolution: Done
-
1.0.0.Beta6
-
None
Description
The behavior of interrupting an app with wildfly-swarm:run when executed from an embedded maven runtime is different from java -jar target/app-swarm.jar. The former does not perform a graceful shutdown.
Output of running wildfly-swarm:run from an embedded maven runtime:
[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building demo 1.0.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> wildfly-swarm-plugin:1.0.0.CR1-SNAPSHOT:run (default-cli) > package @ demo >>> [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ demo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ demo --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ demo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ demo --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ demo --- [INFO] [INFO] --- maven-war-plugin:2.6:war (default-war) @ demo --- [INFO] Packaging webapp [INFO] Assembling webapp [demo] in [/tmp/demo/target/demo] [INFO] Processing war project [INFO] Copying webapp resources [/tmp/demo/src/main/webapp] [INFO] Webapp assembled in [41 msecs] [INFO] Building war: /tmp/demo/target/demo.war [INFO] [INFO] --- wildfly-swarm-plugin:1.0.0.CR1-SNAPSHOT:package (default) @ demo --- No WildFly Swarm dependencies found; scanning for needed fractions Detected fractions: jaxrs:1.0.0.Beta5-SNAPSHOT, undertow:1.0.0.Beta5-SNAPSHOT Adding fractions: container:1.0.0.Beta5-SNAPSHOT, ee:1.0.0.Beta5-SNAPSHOT, io:1.0.0.Beta5-SNAPSHOT, jaxrs:1.0.0.Beta5-SNAPSHOT, naming:1.0.0.Beta5-SNAPSHOT, security:1.0.0.Beta5-SNAPSHOT, undertow:1.0.0.Beta5-SNAPSHOT [INFO] [INFO] <<< wildfly-swarm-plugin:1.0.0.CR1-SNAPSHOT:run (default-cli) < package @ demo <<< [INFO] [INFO] --- wildfly-swarm-plugin:1.0.0.CR1-SNAPSHOT:run (default-cli) @ demo --- [INFO] Starting .war [INFO] No WildFly Swarm dependencies found - scanning for needed fractions [INFO] Detected fractions: jaxrs:1.0.0.Beta5-SNAPSHOT, undertow:1.0.0.Beta5-SNAPSHOT [INFO] Using fractions: container:1.0.0.Beta5-SNAPSHOT, ee:1.0.0.Beta5-SNAPSHOT, io:1.0.0.Beta5-SNAPSHOT, jaxrs:1.0.0.Beta5-SNAPSHOT, naming:1.0.0.Beta5-SNAPSHOT, security:1.0.0.Beta5-SNAPSHOT, undertow:1.0.0.Beta5-SNAPSHOT Dependencies not bundled, will resolve from local M2REPO 12:43:26,874 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final 12:43:27,087 INFO [org.jboss.as] (MSC service thread 1-8) WFLYSRV0049: WildFly Core 2.0.10.Final "Kenny" starting 12:43:27,693 INFO [org.jboss.as.security] (ServerService Thread Pool -- 11) WFLYSEC0002: Activating Security Subsystem 12:43:27,697 INFO [org.jboss.as.security] (MSC service thread 1-5) WFLYSEC0001: Current PicketBox version=4.9.4.Final 12:43:27,702 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 12) WFLYNAM0001: Activating Naming Subsystem 12:43:27,757 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 9) WFLYUT0003: Undertow 1.3.15.Final starting 12:43:27,759 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0003: Undertow 1.3.15.Final starting 12:43:27,777 INFO [org.jboss.as.naming] (MSC service thread 1-6) WFLYNAM0003: Starting Naming Service 12:43:27,780 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 13) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors 12:43:27,840 INFO [org.xnio] (MSC service thread 1-5) XNIO version 3.3.4.Final 12:43:27,848 INFO [org.xnio.nio] (MSC service thread 1-5) XNIO NIO Implementation Version 3.3.4.Final 12:43:27,883 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0012: Started server default-server. 12:43:28,007 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Core 2.0.10.Final "Kenny" started in 1171ms - Started 63 of 75 services (14 services are lazy, passive or on-demand) 12:43:28,054 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0006: Undertow HTTP listener default listening on [0:0:0:0:0:0:0:0]:8080 12:43:28,646 INFO [org.wildfly.swarm.runtime.deployer] (main) deploying demo.war 12:43:28,663 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0027: Starting deployment of "demo.war" (runtime-name: "demo.war") 12:43:29,978 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0018: Host default-host starting 12:43:30,294 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 16) RESTEASY002225: Deploying javax.ws.rs.core.Application: class org.demo.rest.RestApplication 12:43:30,322 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 16) WFLYUT0021: Registered web context: / 12:43:30,347 INFO [org.jboss.as.server] (main) WFLYSRV0010: Deployed "demo.war" (runtime-name : "demo.war") ^C[INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 23.082 s [INFO] Finished at: 2016-04-05T12:43:40-03:00 [INFO] Final Memory: 71M/516M [INFO] ------------------------------------------------------------------------
Output of java -jar app-swarm.jar
12:44:56,311 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final 12:44:56,461 INFO [org.jboss.as] (MSC service thread 1-8) WFLYSRV0049: WildFly Core 2.0.10.Final "Kenny" starting 12:44:57,173 INFO [org.jboss.as.security] (ServerService Thread Pool -- 11) WFLYSEC0002: Activating Security Subsystem 12:44:57,187 INFO [org.jboss.as.security] (MSC service thread 1-5) WFLYSEC0001: Current PicketBox version=4.9.4.Final 12:44:57,204 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 13) WFLYNAM0001: Activating Naming Subsystem 12:44:57,248 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0003: Undertow 1.3.15.Final starting 12:44:57,252 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 14) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors 12:44:57,253 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 9) WFLYUT0003: Undertow 1.3.15.Final starting 12:44:57,258 INFO [org.jboss.as.naming] (MSC service thread 1-6) WFLYNAM0003: Starting Naming Service 12:44:57,310 INFO [org.xnio] (MSC service thread 1-2) XNIO version 3.3.4.Final 12:44:57,330 INFO [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.3.4.Final 12:44:57,432 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0012: Started server default-server. 12:44:57,538 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Core 2.0.10.Final "Kenny" started in 1256ms - Started 63 of 75 services (14 services are lazy, passive or on-demand) 12:44:57,604 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0006: Undertow HTTP listener default listening on [0:0:0:0:0:0:0:0]:8080 12:44:58,273 INFO [org.wildfly.swarm.runtime.deployer] (main) deploying demo.war 12:44:58,289 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0027: Starting deployment of "demo.war" (runtime-name: "demo.war") 12:44:59,668 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0018: Host default-host starting 12:45:00,082 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 2) RESTEASY002225: Deploying javax.ws.rs.core.Application: class org.demo.rest.RestApplication 12:45:00,120 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 2) WFLYUT0021: Registered web context: / 12:45:00,152 INFO [org.jboss.as.server] (main) WFLYSRV0010: Deployed "demo.war" (runtime-name : "demo.war") ^C12:45:01,771 INFO [org.jboss.as.server] (Thread-4) WFLYSRV0220: Server shutdown has been requested. 12:45:01,783 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0008: Undertow HTTP listener default suspending 12:45:01,784 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0007: Undertow HTTP listener default stopped, was bound to [0:0:0:0:0:0:0:0]:8080 12:45:01,789 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 2) WFLYUT0022: Unregistered web context: / 12:45:01,800 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0019: Host default-host stopping 12:45:01,804 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0004: Undertow 1.3.15.Final stopping 12:45:01,811 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0028: Stopped deployment demo.war (runtime-name: demo.war) in 33ms 12:45:01,814 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: WildFly Core 2.0.10.Final "Kenny" stopped in 26ms