I've tried to deploy my application using Wildfly Management Console (wildfly 10.1.0.Final) but unfortunately failed due to the following reason / error :
Cannot upload deployment: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"MyApplication.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"MyApplication.war\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"MyApplication.war\" Caused by: java.lang.OutOfMemoryError: Metaspace"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"MyApplication.war\".POST_MODULE"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
I used Replace Deployment function provided on the console. I've used the same function to upload my .war application before this and successfully deployed.
I've tested my application locally and it can be deployed and executed without any errors.