We deployed the WAR file to Wildfly using the deployment scanner (the “deployment” folder). The web application runs until the computer restarts - it does not work when the web application is loaded by the server again. It is worth saying that we do not have this problem, if the Wildfly service restarts, this only happens after the entire OS is restarted. And if I just restart Wildfly, it works again.
If I remove the flag of the failed file (healthsafety-server.war.failed) from the deployment folder, the application will be successfully deployed in a few seconds.
If the deployment is performed through the administrator console, it does not work for the first time. However, if the application is disconnected and then turned back on, it also works.
We run Wildfly 8.2.0 Final on Windows 10 Home (64-bit English), but we also tried Finalfly 9.0.2 Final, and we got the same behavior. We had the same problem on another computer with 64-bit 64-bit Windows 8.1.
The Wildfly folder is placed in the "C: \" folder, and full control is granted to all users, including "everyone." These steps have been applied, but the problem persists.
This is the contents of the healthsafety-server.war.failed file on Wildfly 8.2.0 Final :
"{\" JBAS014671: Failed services \ "=> {\" jboss.undertow.deployment.default-server.default-host./healthsafety-server \ "=> \" org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./healthsafety-server: Failed to start service
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C: \\\ \ wildfly-8.2.0.Final \\\\ standalone \\\\ tmp \\\\ vfs \\\\ temp \\\\ tempea4e3edc0321f2c2 \\\\ healthsafety-server.war-4135c52d8f677a8a \\\\ healthsafety- server.war-7794207299642458131.tmp (Access is denied)
Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C: \\\\ wildfly-8.2.0 .Final \\\\ standalone \\\\ tmp \\\\ vfs \\\\ temp \\\\ tempea4e3edc0321f2c2 \\\\ healthsafety-server.war-4135c52d8f677a8a \\\\ healthsafety-server.war-7794207299642458131. tmp (Access is denied)
Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C: \\\\ wildfly-8.2.0.Final \\\\ standalone \\\\ tmp \\\\ vfs \\\\ temp \\\\ tempea4e3edc0321f2c2 \\\\ healthsafety-server.war-4135c52d8f677a8a \\\\ healthsafety-server.war-7794207299642458131.tmp (Access is denied)
Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C: \\\\ wildfly-8.2.0.Final \\\\ standalone \\\\ tmp \\\\ vfs \\\\ temp \\\\ tempea4e3edc0321f2c2 \\\\ healthsafety-server.war-4135c52d8f677a8a \\\\ healthsafety-server.war-7794207299642458131.tmp (Access is denied)
Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C: \\\\ wildfly-8.2.0.Final \\\\ standalone \\\\ tmp \\\\ vfs \\\\ temp \\ \\ tempea4e3edc0321f2c2 \\\\ healthsafety-server.war-4135c52d8f677a8a \\\\ healthsafety-server.war-7794207299642458131.tmp (Access is denied)
Caused by: java.io.FileNotFoundException: C: \\\\ wildfly-8.2.0.Final \\\\ standalone \\\\ tmp \\\\ vfs \\\\ temp \\\\ tempea4e3edc0321f2c2 \\\ \ healthsafety-server.war-4135c52d8f677a8a \\\\ healthsafety-server.war-7794207299642458131.tmp (Access is denied) \ "}}"
healthsafety-server.war.failed Wildfly 9.0.2 Final:
"{\"WFLYCTL0080: Failed services\" => {\"jboss.undertow.deployment.default-server.default-host./healthsafety-server\" => \"org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./healthsafety-server: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\\\wildfly-9.0.2.Final\\\\standalone\\\\tmp\\\\vfs\\\\temp\\\\temp2bdea2bc34b5d6c1\\\\content-ed5f82fbe5807374\\\\content-4117938517180519169.tmp (Access is denied)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\\\wildfly-9.0.2.Final\\\\standalone\\\\tmp\\\\vfs\\\\temp\\\\temp2bdea2bc34b5d6c1\\\\content-ed5f82fbe5807374\\\\content-4117938517180519169.tmp (Access is denied)
Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\\\wildfly-9.0.2.Final\\\\standalone\\\\tmp\\\\vfs\\\\temp\\\\temp2bdea2bc34b5d6c1\\\\content-ed5f82fbe5807374\\\\content-4117938517180519169.tmp (Access is denied)
Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\\\wildfly-9.0.2.Final\\\\standalone\\\\tmp\\\\vfs\\\\temp\\\\temp2bdea2bc34b5d6c1\\\\content-ed5f82fbe5807374\\\\content-4117938517180519169.tmp (Access is denied)
Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\\\wildfly-9.0.2.Final\\\\standalone\\\\tmp\\\\vfs\\\\temp\\\\temp2bdea2bc34b5d6c1\\\\content-ed5f82fbe5807374\\\\content-4117938517180519169.tmp (Access is denied)
Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\\\\wildfly-9.0.2.Final\\\\standalone\\\\tmp\\\\vfs\\\\temp\\\\temp2bdea2bc34b5d6c1\\\\content-ed5f82fbe5807374\\\\content-4117938517180519169.tmp (Access is denied)
Caused by: java.io.FileNotFoundException: C:\\\\wildfly-9.0.2.Final\\\\standalone\\\\tmp\\\\vfs\\\\temp\\\\temp2bdea2bc34b5d6c1\\\\content-ed5f82fbe5807374\\\\content-4117938517180519169.tmp (Access is denied)\"}}"
.
PS: JBoss