I am running Wildfly 10.0 inside Amazon AWS EC2 instance. Everything is running fine. But when I am trying to shutdown the wildfly the server, it's undeploying the deployed EAR file. I am using the below command to start and stop the server.
START:
nohup /data/wildfly-10.1.0.Final/bin/standalone.sh -Djavax.net.ssl.trustStore="/usr/java/jdk1.8.0_121/jre/lib/security/jssecacerts" --server-config=standalone.xml &
STOP:
sh /data/wildfly-10.1.0.Final/bin/jboss-cli.sh --connect command=:shutdown
After executing the shutdown command, I am getting this in server.log
2017-04-04 08:38:35,062 INFO [org.jboss.as.repository] (ServerService Thread Pool -- 68) WFLYDR0009: Content /data/wildfly-10.1.0.Final/standalone/data/content/dd/66eee901c4bf79dd6659873df918e1b639bc1b is obsolete and will be removed
2017-04-04 08:38:35,073 INFO [org.jboss.as.repository] (ServerService Thread Pool -- 68) WFLYDR0002: Content removed from location /data/wildfly-10.1.0.Final/standalone/data/content/dd/66eee901c4bf79dd6659873df918e1b639bc1b/content
We are not facing this issue in local windows environment or any other Linux environment. It's happening only in Amazon AWS EC2 environment where the operating system is Redhat.