Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wildfly deploy failed: JBAS014671 and WFLYCTL0080 - Access is denied

We have deployed a WAR file to Wildfly using the Deployment Scanner ("deployments" folders). The web app works until the computer is rebooted - it fails when the web app is loaded by the server again. It's worth saying that we don't have this problem if the Wildfly service is restarted, it happens only when the whole OS is restarted. And if I just restart Wildfly, it works back again.

If I delete the failed file flag (healthsafety-server.war.failed) from the deployments folder, the application is successfully deployed after few seconds.

If the deploy is being done through the Administrator console, it fails the first time. However, if the app is disabled and then enabled back again, it works too.

We're running Wildfly 8.2.0 Final on Windows 10 Home (64bits English), but we tried Wildfly 9.0.2 Final too and we got the same behavior. We had the same problem on a different computer with Windows 8.1 64 bits Professional.

The Wildfly folder is placed on the "C:\" folder and full control has been provided to all users, including "everyone". These steps were also applied but the issue persists.

This is the content from 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)\"}}"

and this is the content from the healthsafety-server.war.failed file on 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)\"}}"

Any help is appreciated.

PS: cross-post on JBoss forums

like image 906
wcomnisky Avatar asked Feb 09 '23 01:02

wcomnisky


1 Answers

After upgrading from win7 to win10 I had the same issue. Issue seems to be caused by Windows Defender real-time protection. Solution was to exclude the {wildfly folder}\standalone\tmp\vfs folder in Defender. Hope it'll work for you, too.

like image 70
Jozsef Torsan Avatar answered Feb 11 '23 21:02

Jozsef Torsan