1 2 Previous Next 14 Replies Latest reply on Apr 12, 2016 10:18 AM by jasonholmberg

    Wildfly fails to deploy application (FileNotFoundException - Access is Denied)

    marcos_aps

      - Wildfly 8.2.0.Final

      - JDK 8 Update 60

      - Eclipse Mars Update 1

      - JBoss Tools 4.3.0.Final

      - Windows 10

       

      Recently I upgraded the following things:

       

      - from Windows 7 to Windows 10

      - from Eclipse Mars to Eclipse Mars Update 1

      - from JBoss Tools 4.3.0.Beta1 to JBoss Tools 4.3.0.Final

       

      and now when I try to deploy my application in Eclipse it doesn't work anymore (sometimes it works, but most of the time it doesn't work). Everything was working fine before the upgrades, but now I get this stack trace when I deploy the application (where you read "Acesso negado" below it means "Access is Denied"):

       

      13:18:12,452 SEVERE [javax.faces] (MSC service thread 1-7) Unable to obtain InjectionProvider from init time FacesContext. Does this container implement the Mojarra Injection SPI?

      13:18:12,452 SEVERE [javax.faces] (MSC service thread 1-7) Unable to call @PreDestroy annotated methods because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?

      13:18:12,452 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-7) Critical error during deployment: : com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

        at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:752) [jsf-impl-2.2.8-jbossorg-1.jar:]

        at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:349) [jsf-impl-2.2.8-jbossorg-1.jar:]

        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:221) [jsf-impl-2.2.8-jbossorg-1.jar:]

        at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

        at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:193) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87)

        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]

      Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

        at java.util.concurrent.FutureTask.report(FutureTask.java:122) [rt.jar:1.8.0_60]

        at java.util.concurrent.FutureTask.get(FutureTask.java:192) [rt.jar:1.8.0_60]

        at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:739) [jsf-impl-2.2.8-jbossorg-1.jar:]

        ... 11 more

      Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

        at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:135) [jsf-impl-2.2.8-jbossorg-1.jar:]

        at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1308) [jsf-impl-2.2.8-jbossorg-1.jar:]

        at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1277) [jsf-impl-2.2.8-jbossorg-1.jar:]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]

        at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:730) [jsf-impl-2.2.8-jbossorg-1.jar:]

        ... 11 more

      Caused by: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

        at java.io.FileInputStream.open0(Native Method) [rt.jar:1.8.0_60]

        at java.io.FileInputStream.open(FileInputStream.java:195) [rt.jar:1.8.0_60]

        at java.io.FileInputStream.<init>(FileInputStream.java:138) [rt.jar:1.8.0_60]

        at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:107) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:105) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_60]

        at org.jboss.vfs.spi.RealFileSystem.doIoPrivileged(RealFileSystem.java:87) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at org.jboss.vfs.spi.RealFileSystem.openInputStream(RealFileSystem.java:105) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:258) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at org.jboss.vfs.VirtualJarInputStream.openCurrent(VirtualJarInputStream.java:227) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at org.jboss.vfs.VirtualJarInputStream.getNextJarEntry(VirtualJarInputStream.java:113) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at org.jboss.vfs.VirtualJarInputStream.getNextEntry(VirtualJarInputStream.java:84) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:221) [jsf-impl-2.2.8-jbossorg-1.jar:]

        at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:241) [jsf-impl-2.2.8-jbossorg-1.jar:]

        at com.sun.faces.facelets.util.Classpath.search(Classpath.java:155) [jsf-impl-2.2.8-jbossorg-1.jar:]

        at com.sun.faces.facelets.util.Classpath.search(Classpath.java:109) [jsf-impl-2.2.8-jbossorg-1.jar:]

        at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.loadURLs(MetaInfFacesConfigResourceProvider.java:164) [jsf-impl-2.2.8-jbossorg-1.jar:]

        at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:108) [jsf-impl-2.2.8-jbossorg-1.jar:]

        ... 15 more

       

       

      13:18:12,454 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./gruposemailservidores: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./gruposemailservidores: Failed to start service

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]

      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\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

        at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:222)

        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87)

        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        ... 3 more

      Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:280)

        at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)

        at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:193)

        ... 7 more

      Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

        at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:752)

        at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:349)

        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:221)

        ... 9 more

      Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

        at java.util.concurrent.FutureTask.report(FutureTask.java:122) [rt.jar:1.8.0_60]

        at java.util.concurrent.FutureTask.get(FutureTask.java:192) [rt.jar:1.8.0_60]

        at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:739)

        ... 11 more

      Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

        at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:135)

        at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1308)

        at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1277)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]

        at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:730)

        ... 11 more

      Caused by: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

        at java.io.FileInputStream.open0(Native Method) [rt.jar:1.8.0_60]

        at java.io.FileInputStream.open(FileInputStream.java:195) [rt.jar:1.8.0_60]

        at java.io.FileInputStream.<init>(FileInputStream.java:138) [rt.jar:1.8.0_60]

        at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:107) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:105) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_60]

        at org.jboss.vfs.spi.RealFileSystem.doIoPrivileged(RealFileSystem.java:87) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at org.jboss.vfs.spi.RealFileSystem.openInputStream(RealFileSystem.java:105) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:258) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at org.jboss.vfs.VirtualJarInputStream.openCurrent(VirtualJarInputStream.java:227) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at org.jboss.vfs.VirtualJarInputStream.getNextJarEntry(VirtualJarInputStream.java:113) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at org.jboss.vfs.VirtualJarInputStream.getNextEntry(VirtualJarInputStream.java:84) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

        at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:221)

        at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:241)

        at com.sun.faces.facelets.util.Classpath.search(Classpath.java:155)

        at com.sun.faces.facelets.util.Classpath.search(Classpath.java:109)

        at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.loadURLs(MetaInfFacesConfigResourceProvider.java:164)

        at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:108)

        ... 15 more

       

       

      13:18:12,460 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./gruposemailservidores" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./gruposemailservidores: 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\\standalone\\tmp\\vfs\\temp\\temp4de141261078fbde\\gruposemailservidores.war-18ba5e3d2b4062a2\\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

          Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\wildfly\\standalone\\tmp\\vfs\\temp\\temp4de141261078fbde\\gruposemailservidores.war-18ba5e3d2b4062a2\\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

          Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\wildfly\\standalone\\tmp\\vfs\\temp\\temp4de141261078fbde\\gruposemailservidores.war-18ba5e3d2b4062a2\\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

          Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\wildfly\\standalone\\tmp\\vfs\\temp\\temp4de141261078fbde\\gruposemailservidores.war-18ba5e3d2b4062a2\\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

          Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\\wildfly\\standalone\\tmp\\vfs\\temp\\temp4de141261078fbde\\gruposemailservidores.war-18ba5e3d2b4062a2\\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)

          Caused by: java.io.FileNotFoundException: C:\\wildfly\\standalone\\tmp\\vfs\\temp\\temp4de141261078fbde\\gruposemailservidores.war-18ba5e3d2b4062a2\\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)"}}

      13:18:12,527 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018565: Replaced deployment "gruposemailservidores.war" with deployment "gruposemailservidores.war"

      13:18:12,528 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.persistenceunit."gruposemailservidores.war#ufca" (unavailable) dependents: [service jboss.deployment.unit."gruposemailservidores.war".deploymentCompleteService]

      JBAS014777:   Services which failed to start:      service jboss.undertow.deployment.default-server.default-host./gruposemailservidores

            service jboss.undertow.deployment.default-server.default-host./gruposemailservidores: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./gruposemailservidores: Failed to start service

       

      I've already checked the Windows permissions to the folder referenced above and it seems that everything is fine.


      Thank you in advance.


      Marcos

        • 1. Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)
          mayerw01

          It looks like this issue is related to this bug [JAVASERVERFACES-3189] InjectionProvider not found due to duplicate registrations of ConfigureListener - Java.net JIRA

          Did you try if the issue persists with WildFly 9 or 10?

          • 2. Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)
            marcos_aps

            Wolfgang Mayer escreveu:

             

            It looks like this issue is related to this bug [JAVASERVERFACES-3189] InjectionProvider not found due to duplicate registrations of ConfigureListener - Java.net JIRA

            Did you try if the issue persists with WildFly 9 or 10?

             

            Hello, Wolfgang. Following your suggestion I've just tested with Wildfly 9.0.1 and I still get the same error. Here's the stacktrace:

             

            09:18:07,196 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 22) Critical error during deployment: : com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly-9.0.1.Final\standalone\tmp\vfs\temp\temp8c70079522e0d6bf\content-7737b4426417a733\content-4532729048297820967.tmp (Acesso negado)

              at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:764)

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:353)

              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:227)

              at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)

              at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:195)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

              at java.util.concurrent.FutureTask.run(FutureTask.java:266)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

              at java.lang.Thread.run(Thread.java:745)

              at org.jboss.threads.JBossThread.run(JBossThread.java:320)

            Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly-9.0.1.Final\standalone\tmp\vfs\temp\temp8c70079522e0d6bf\content-7737b4426417a733\content-4532729048297820967.tmp (Acesso negado)

              at java.util.concurrent.FutureTask.report(FutureTask.java:122)

              at java.util.concurrent.FutureTask.get(FutureTask.java:192)

              at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:751)

              ... 12 more

            Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly-9.0.1.Final\standalone\tmp\vfs\temp\temp8c70079522e0d6bf\content-7737b4426417a733\content-4532729048297820967.tmp (Acesso negado)

              at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:137)

              at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1360)

              at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1329)

              at java.util.concurrent.FutureTask.run(FutureTask.java:266)

              at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:742)

              ... 12 more

            Caused by: java.io.FileNotFoundException: C:\wildfly-9.0.1.Final\standalone\tmp\vfs\temp\temp8c70079522e0d6bf\content-7737b4426417a733\content-4532729048297820967.tmp (Acesso negado)

              at java.io.FileInputStream.open0(Native Method)

              at java.io.FileInputStream.open(FileInputStream.java:195)

              at java.io.FileInputStream.<init>(FileInputStream.java:138)

              at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:111)

              at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:109)

              at java.security.AccessController.doPrivileged(Native Method)

              at org.jboss.vfs.spi.RealFileSystem.doIoPrivileged(RealFileSystem.java:91)

              at org.jboss.vfs.spi.RealFileSystem.openInputStream(RealFileSystem.java:109)

              at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:254)

              at org.jboss.vfs.VirtualJarInputStream.openCurrent(VirtualJarInputStream.java:223)

              at org.jboss.vfs.VirtualJarInputStream.getNextJarEntry(VirtualJarInputStream.java:109)

              at org.jboss.vfs.VirtualJarInputStream.getNextEntry(VirtualJarInputStream.java:80)

              at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:222)

              at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:242)

              at com.sun.faces.facelets.util.Classpath.search(Classpath.java:156)

              at com.sun.faces.facelets.util.Classpath.search(Classpath.java:110)

              at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.loadURLs(MetaInfFacesConfigResourceProvider.java:166)

              at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:110)

              ... 16 more

             

             

            09:18:07,196 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 22) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./gruposemailservidoreswf9: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./gruposemailservidoreswf9: 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.1.Final\standalone\tmp\vfs\temp\temp8c70079522e0d6bf\content-7737b4426417a733\content-4532729048297820967.tmp (Acesso negado)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

              at java.util.concurrent.FutureTask.run(FutureTask.java:266)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

              at java.lang.Thread.run(Thread.java:745)

              at org.jboss.threads.JBossThread.run(JBossThread.java:320)

            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.1.Final\standalone\tmp\vfs\temp\temp8c70079522e0d6bf\content-7737b4426417a733\content-4532729048297820967.tmp (Acesso negado)

              at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:224)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)

              ... 6 more

            Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly-9.0.1.Final\standalone\tmp\vfs\temp\temp8c70079522e0d6bf\content-7737b4426417a733\content-4532729048297820967.tmp (Acesso negado)

              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)

              at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)

              at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:195)

              ... 8 more

            Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly-9.0.1.Final\standalone\tmp\vfs\temp\temp8c70079522e0d6bf\content-7737b4426417a733\content-4532729048297820967.tmp (Acesso negado)

              at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:764)

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:353)

              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:227)

              ... 10 more

            Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly-9.0.1.Final\standalone\tmp\vfs\temp\temp8c70079522e0d6bf\content-7737b4426417a733\content-4532729048297820967.tmp (Acesso negado)

              at java.util.concurrent.FutureTask.report(FutureTask.java:122)

              at java.util.concurrent.FutureTask.get(FutureTask.java:192)

              at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:751)

              ... 12 more

            Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly-9.0.1.Final\standalone\tmp\vfs\temp\temp8c70079522e0d6bf\content-7737b4426417a733\content-4532729048297820967.tmp (Acesso negado)

              at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:137)

              at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1360)

              at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1329)

              at java.util.concurrent.FutureTask.run(FutureTask.java:266)

              at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:742)

              ... 12 more

            Caused by: java.io.FileNotFoundException: C:\wildfly-9.0.1.Final\standalone\tmp\vfs\temp\temp8c70079522e0d6bf\content-7737b4426417a733\content-4532729048297820967.tmp (Acesso negado)

              at java.io.FileInputStream.open0(Native Method)

              at java.io.FileInputStream.open(FileInputStream.java:195)

              at java.io.FileInputStream.<init>(FileInputStream.java:138)

              at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:111)

              at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:109)

              at java.security.AccessController.doPrivileged(Native Method)

              at org.jboss.vfs.spi.RealFileSystem.doIoPrivileged(RealFileSystem.java:91)

              at org.jboss.vfs.spi.RealFileSystem.openInputStream(RealFileSystem.java:109)

              at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:254)

              at org.jboss.vfs.VirtualJarInputStream.openCurrent(VirtualJarInputStream.java:223)

              at org.jboss.vfs.VirtualJarInputStream.getNextJarEntry(VirtualJarInputStream.java:109)

              at org.jboss.vfs.VirtualJarInputStream.getNextEntry(VirtualJarInputStream.java:80)

              at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:222)

              at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:242)

              at com.sun.faces.facelets.util.Classpath.search(Classpath.java:156)

              at com.sun.faces.facelets.util.Classpath.search(Classpath.java:110)

              at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.loadURLs(MetaInfFacesConfigResourceProvider.java:166)

              at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:110)

              ... 16 more

             

             

            09:18:07,211 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./gruposemailservidoreswf9" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./gruposemailservidoreswf9: 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.1.Final\\standalone\\tmp\\vfs\\temp\\temp8c70079522e0d6bf\\content-7737b4426417a733\\content-4532729048297820967.tmp (Acesso negado)

                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.1.Final\\standalone\\tmp\\vfs\\temp\\temp8c70079522e0d6bf\\content-7737b4426417a733\\content-4532729048297820967.tmp (Acesso negado)

                Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\wildfly-9.0.1.Final\\standalone\\tmp\\vfs\\temp\\temp8c70079522e0d6bf\\content-7737b4426417a733\\content-4532729048297820967.tmp (Acesso negado)

                Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\wildfly-9.0.1.Final\\standalone\\tmp\\vfs\\temp\\temp8c70079522e0d6bf\\content-7737b4426417a733\\content-4532729048297820967.tmp (Acesso negado)

                Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\wildfly-9.0.1.Final\\standalone\\tmp\\vfs\\temp\\temp8c70079522e0d6bf\\content-7737b4426417a733\\content-4532729048297820967.tmp (Acesso negado)

                Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\\wildfly-9.0.1.Final\\standalone\\tmp\\vfs\\temp\\temp8c70079522e0d6bf\\content-7737b4426417a733\\content-4532729048297820967.tmp (Acesso negado)

                Caused by: java.io.FileNotFoundException: C:\\wildfly-9.0.1.Final\\standalone\\tmp\\vfs\\temp\\temp8c70079522e0d6bf\\content-7737b4426417a733\\content-4532729048297820967.tmp (Acesso negado)"}}

            09:18:07,305 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0016: Replaced deployment "gruposemailservidoreswf9.war" with deployment "gruposemailservidoreswf9.war"

            09:18:07,305 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service status report

            WFLYCTL0186:  Services which failed to start:      service jboss.undertow.deployment.default-server.default-host./gruposemailservidoreswf9: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./gruposemailservidoreswf9: 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.1.Final\standalone\tmp\vfs\temp\temp8c70079522e0d6bf\content-7737b4426417a733\content-4532729048297820967.tmp (Acesso negado)

             

             

            09:18:07,305 INFO  [org.jboss.as.repository] (DeploymentScanner-threads - 2) WFLYDR0002: Content removed from location C:\wildfly-9.0.1.Final\standalone\data\content\52\58dad8a26c6678dd8e95d08d201a51189ee09e\content

             

            Any more ideas about what this could be?

            • 4. Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)
              marcos_aps

              Wolfgang Mayer escreveu:

               

              Can you check if this solves your problem? https://www.reddit.com/r/Windows10/comments/3g42rn/updated_to_windows_10_now_im_getting_access/

              I had already checked it before asking for help here and it didn't work. By the way, I downgraded to Windows 7 and the problem remains.

              • 5. Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)
                ctomc

                I think you should be fine if you just delete  C:\wildfly-9.0.1.Final\standalone\tmp  folder manually.

                and restart server afterwards. On boot server will recreate this folder with new permissions that should be fine.

                • 6. Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)
                  marcos_aps

                  Tomaz Cerar escreveu:

                   

                  I think you should be fine if you just delete  C:\wildfly-9.0.1.Final\standalone\tmp  folder manually.

                  and restart server afterwards. On boot server will recreate this folder with new permissions that should be fine.

                  That was one of the first things I did but it didn't work. Anyway, the problem is solved now. I formated my PC and installed Windows 7 from scratch. Everything is working as before now. Just downgrading from Windows 10 to Windows 7 didn't work. Lesson learned: never upgrade to a new version of an operating system. You should format and install. (I'm aware that some might not have any problems after doing this, but that was not my case).

                  • 7. Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)
                    joaoluizcadore

                    Hello Guys,

                    I have the same problem and to format my PC is not a option.

                    My environment:

                    - Windows 8

                    - I tried to deploy with maven (mvn clean install wildfly:deploy)

                    ---- Maven 3.2.1 - wildfly-plugin-version 1.0.2-Final

                    - I tried with wildfly 8 and 9 (standalone)

                    - I don't have anti-virus

                    - I tried to execute wildfly standalone  with administrator role.

                    - I tried to remove standalone\tmp folder.

                     

                    12:50:29,203 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-7) Initializing Mojarra 2.2.6-jbossorg-4 20140501-1134 for context '/restaurantbrands-healthsafety-server'

                    12:50:29,357 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-7) Critical error during deployment: : com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\Users\renan\wildfly-8.1.0.Final\standalone\tmp\vfs\temp\tempa00a423f4abd70bd\content-9ec0c4591d5b9a5a\content-9073134099266688735.tmp (Access is denied)

                            at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:752) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:349) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                            at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:190) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

                            at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87)

                            at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

                            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_25]

                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_25]

                            at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_25]

                    Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\Users\renan\wildfly-8.1.0.Final\standalone\tmp\vfs\temp\tempa00a423f4abd70bd\content-9ec0c4591d5b9a5a\content-9073134099266688735.tmp (Access is denied)

                            at java.util.concurrent.FutureTask.report(FutureTask.java:122) [rt.jar:1.8.0_25]

                            at java.util.concurrent.FutureTask.get(FutureTask.java:192) [rt.jar:1.8.0_25]

                            at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:739) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            ... 11 more

                    Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\Users\renan\wildfly-8.1.0.Final\standalone\tmp\vfs\temp\tempa00a423f4abd70bd\content-9ec0c4591d5b9a5a\content-9073134099266688735.tmp (Access is denied)

                            at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:135) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1308) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1277) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_25]

                            at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:730) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            ... 11 more

                    Caused by: java.io.FileNotFoundException: C:\Users\renan\wildfly-8.1.0.Final\standalone\tmp\vfs\temp\tempa00a423f4abd70bd\content-9ec0c4591d5b9a5a\content-9073134099266688735.tmp (Access is denied)

                            at java.io.FileInputStream.open(Native Method) [rt.jar:1.8.0_25]

                            at java.io.FileInputStream.<init>(FileInputStream.java:138) [rt.jar:1.8.0_25]

                            at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:107) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:105) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_25]

                            at org.jboss.vfs.spi.RealFileSystem.doIoPrivileged(RealFileSystem.java:87) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at org.jboss.vfs.spi.RealFileSystem.openInputStream(RealFileSystem.java:105) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:258) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at org.jboss.vfs.VirtualJarInputStream.openCurrent(VirtualJarInputStream.java:227) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at org.jboss.vfs.VirtualJarInputStream.getNextJarEntry(VirtualJarInputStream.java:113) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at org.jboss.vfs.VirtualJarInputStream.getNextEntry(VirtualJarInputStream.java:84) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:221) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:241) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            at com.sun.faces.facelets.util.Classpath.search(Classpath.java:155) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            at com.sun.faces.facelets.util.Classpath.search(Classpath.java:109) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.loadURLs(MetaInfFacesConfigResourceProvider.java:164) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:108) [jsf-impl-2.2.6-jbossorg-4.jar:]

                            ... 15 more

                     

                     

                    12:50:29,367 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./restaurantbrands-healthsafety-server: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./restaurantbrands-healthsafety-server: Failed to start service

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

                            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_25]

                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_25]

                            at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_25]

                    Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\Users\renan\wildfly-8.1.0.Final\standalone\tmp\vfs\temp\tempa00a423f4abd70bd\content-9ec0c4591d5b9a5a\content-9073134099266688735.tmp (Access is denied)

                            at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:219)

                            at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87)

                            at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

                            ... 3 more

                    Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\Users\renan\wildfly-8.1.0.Final\standalone\tmp\vfs\temp\tempa00a423f4abd70bd\content-9ec0c4591d5b9a5a\content-9073134099266688735.tmp (Access is denied)

                            at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:275)

                            at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)

                            at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:190)

                            ... 7 more

                    Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\Users\renan\wildfly-8.1.0.Final\standalone\tmp\vfs\temp\tempa00a423f4abd70bd\content-9ec0c4591d5b9a5a\content-9073134099266688735.tmp (Access is denied)

                            at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:752)

                            at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:349)

                            at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216)

                            ... 9 more

                    Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\Users\renan\wildfly-8.1.0.Final\standalone\tmp\vfs\temp\tempa00a423f4abd70bd\content-9ec0c4591d5b9a5a\content-9073134099266688735.tmp (Access is denied)

                            at java.util.concurrent.FutureTask.report(FutureTask.java:122) [rt.jar:1.8.0_25]

                            at java.util.concurrent.FutureTask.get(FutureTask.java:192) [rt.jar:1.8.0_25]

                            at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:739)

                            ... 11 more

                    Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\Users\renan\wildfly-8.1.0.Final\standalone\tmp\vfs\temp\tempa00a423f4abd70bd\content-9ec0c4591d5b9a5a\content-9073134099266688735.tmp (Access is denied)

                            at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:135)

                            at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1308)

                            at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1277)

                            at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_25]

                            at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:730)

                            ... 11 more

                    Caused by: java.io.FileNotFoundException: C:\Users\renan\wildfly-8.1.0.Final\standalone\tmp\vfs\temp\tempa00a423f4abd70bd\content-9ec0c4591d5b9a5a\content-9073134099266688735.tmp (Access is denied)

                            at java.io.FileInputStream.open(Native Method) [rt.jar:1.8.0_25]

                            at java.io.FileInputStream.<init>(FileInputStream.java:138) [rt.jar:1.8.0_25]

                            at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:107) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:105) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_25]

                            at org.jboss.vfs.spi.RealFileSystem.doIoPrivileged(RealFileSystem.java:87) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at org.jboss.vfs.spi.RealFileSystem.openInputStream(RealFileSystem.java:105) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:258) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at org.jboss.vfs.VirtualJarInputStream.openCurrent(VirtualJarInputStream.java:227) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at org.jboss.vfs.VirtualJarInputStream.getNextJarEntry(VirtualJarInputStream.java:113) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at org.jboss.vfs.VirtualJarInputStream.getNextEntry(VirtualJarInputStream.java:84) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

                            at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:221)

                            at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:241)

                            at com.sun.faces.facelets.util.Classpath.search(Classpath.java:155)

                            at com.sun.faces.facelets.util.Classpath.search(Classpath.java:109)

                            at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.loadURLs(MetaInfFacesConfigResourceProvider.java:164)

                            at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:108)

                            ... 15 more

                     

                     

                    12:50:29,384 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "restaurantbrands-healthsafety-server.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./restaurantbrands-healthsafety-server" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./restaurantbrands-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:\\Users\\renan\\wildfly-8.1.0.Final\\standalone\\tmp\\vfs\\temp\\tempa00a423f4abd70bd\\content-9ec0c4591d5b9a5a\\content-9073134099266688735.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:\\Users\\renan\\wildfly-8.1.0.Final\\standalone\\tmp\\vfs\\temp\\tempa00a423f4abd70bd\\content-9ec0c4591d5b9a5a\\content-9073134099266688735.tmp (Access is denied)

                        Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\Users\\renan\\wildfly-8.1.0.Final\\standalone\\tmp\\vfs\\temp\\tempa00a423f4abd70bd\\content-9ec0c4591d5b9a5a\\content-9073134099266688735.tmp (Access is denied)

                        Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\Users\\renan\\wildfly-8.1.0.Final\\standalone\\tmp\\vfs\\temp\\tempa00a423f4abd70bd\\content-9ec0c4591d5b9a5a\\content-9073134099266688735.tmp (Access is denied)

                        Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\\Users\\renan\\wildfly-8.1.0.Final\\standalone\\tmp\\vfs\\temp\\tempa00a423f4abd70bd\\content-9ec0c4591d5b9a5a\\content-9073134099266688735.tmp (Access is denied)

                        Caused by: java.io.FileNotFoundException: C:\\Users\\renan\\wildfly-8.1.0.Final\\standalone\\tmp\\vfs\\temp\\tempa00a423f4abd70bd\\content-9ec0c4591d5b9a5a\\content-9073134099266688735.tmp (Access is denied)"}}

                    12:50:29,389 ERROR [org.jboss.as.server] (management-handler-thread - 1) JBAS015870: Deploy of deployment "restaurantbrands-healthsafety-server.war" was rolled back with the following failure message:

                    {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./restaurantbrands-healthsafety-server" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./restaurantbrands-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:\\Users\\renan\\wildfly-8.1.0.Final\\standalone\\tmp\\vfs\\temp\\tempa00a423f4abd70bd\\content-9ec0c4591d5b9a5a\\content-9073134099266688735.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:\\Users\\renan\\wildfly-8.1.0.Final\\standalone\\tmp\\vfs\\temp\\tempa00a423f4abd70bd\\content-9ec0c4591d5b9a5a\\content-9073134099266688735.tmp (Access is denied)

                        Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\Users\\renan\\wildfly-8.1.0.Final\\standalone\\tmp\\vfs\\temp\\tempa00a423f4abd70bd\\content-9ec0c4591d5b9a5a\\content-9073134099266688735.tmp (Access is denied)

                        Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\Users\\renan\\wildfly-8.1.0.Final\\standalone\\tmp\\vfs\\temp\\tempa00a423f4abd70bd\\content-9ec0c4591d5b9a5a\\content-9073134099266688735.tmp (Access is denied)

                        Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\\Users\\renan\\wildfly-8.1.0.Final\\standalone\\tmp\\vfs\\temp\\tempa00a423f4abd70bd\\content-9ec0c4591d5b9a5a\\content-9073134099266688735.tmp (Access is denied)

                        Caused by: java.io.FileNotFoundException: C:\\Users\\renan\\wildfly-8.1.0.Final\\standalone\\tmp\\vfs\\temp\\tempa00a423f4abd70bd\\content-9ec0c4591d5b9a5a\\content-9073134099266688735.tmp (Access is denied)"}}

                     

                     

                     

                    Thank you guys!!

                    • 8. Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)
                      ctomc

                      try running

                      takeown /f C:\Users\renan\wildfly-8.1.0.Final /r /d y

                      with user that you are trying to run wildfly with.

                      and than start the server

                      • 9. Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)
                        jasonholmberg

                        I was seeing this issue in one application.  It seemed to inexplicably trigger something to make WildFly 10 think that the application need to be configured for JSF.  It did not.  My solution was so remove JSP from the configuration my deleting the lines:

                         

                        <extension module="org.jboss.as.jsf"/>
                        
                        
                        

                         

                        and

                         

                        <subsystem xmlns="urn:jboss:domain:jsf:1.0"/>
                        
                        
                        

                         

                        My clue was that I saw this logged for the application seeing this exception:

                         

                        10:13:05,842 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 65) - Initializing Mojarra 2.2.12-jbossorg-2 20150729-1131 for context '/MyApp'

                         

                        This was logged when the app was initially deployed and with each hot-deployment. I still cannot figure out what it is about this application that was triggering JSF, but removing the JSF configuration stops the pain. If I can figure our what the trigger is, then I will log a bug,

                         

                        My Stack:

                             WildFly 10.0.0.Final

                             Java 8

                             Windowz 7 Enterprise

                             Gradle

                         

                         

                        -Jason

                        • 10. Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)
                          xdury

                          I have the same problem: running Wildfly10 via cargo:run on a Windows 10 machine. (When testing on a Windows 7 machine, the problem disappears).

                          • 11. Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)
                            mnmh2001

                            . I am also hitting this error. The Wildfly version is 8.2.0 Final and OS version is Windows 10 .Could you please provide some help to resolve this? I have so far tried change ownership, delete the tmp and data folders etc.

                            • 12. Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)
                              jasonholmberg

                              If you don't actually need JSF, have you tried just removing that module as I have as noted here: Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)

                              1 of 1 people found this helpful
                              • 13. Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)
                                joaoluizcadore

                                Hi Jason,

                                Your tip solved my problem, Thank you!

                                • 14. Re: Wildfly fails to deploy application (FileNotFoundException - Access is Denied)
                                  mnmh2001

                                  I use the JSF module. The problem is very strange as some occasions it works.

                                  1 2 Previous Next