1 Reply Latest reply on Feb 24, 2017 7:13 AM by Anup Dey

    jboss-as:deploy works only time to time

    nicolas duminil Master

      Hello,

       

      I'm deploying a WAR on EAP 6.4.0.GA. The following command:

       

        mvn clean jboss-as:undeploy jboss-as:deploy

       

      raises the following exceptions:

       

      16:10:58,576 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/test-forge]] (ServerService Thread Pool -- 96) JBWEB000287: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\EAP-6.4.0\standalone\tmp\vfs\temp\temp37cc445f15d51504\content-cfef83f66a6190fb\content-4543887875092173152.tmp (Accès refusé)

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:276) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.12.Final-redhat-1.jar:7.5.12.Final-redhat-1]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.12.Final-redhat-1.jar:7.5.12.Final-redhat-1]

          at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.6.Final-redhat-2.jar:7.5.6.Final-redhat-2]

          at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.6.Final-redhat-2.jar:7.5.6.Final-redhat-2]

          at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.6.Final-redhat-2.jar:7.5.6.Final-redhat-2]

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_65]

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

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

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

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

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

      Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\EAP-6.4.0\standalone\tmp\vfs\temp\temp37cc445f15d51504\content-cfef83f66a6190fb\content-4543887875092173152.tmp (Accès refusé)

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:661) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:323) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          ... 11 more

      Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\EAP-6.4.0\standalone\tmp\vfs\temp\temp37cc445f15d51504\content-cfef83f66a6190fb\content-4543887875092173152.tmp (Accès refusé)

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

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

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:648) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          ... 13 more

      Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\EAP-6.4.0\standalone\tmp\vfs\temp\temp37cc445f15d51504\content-cfef83f66a6190fb\content-4543887875092173152.tmp (Accès refusé)

          at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:135) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1178) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1147) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

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

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:639) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          ... 13 more

      Caused by: java.io.FileNotFoundException: C:\EAP-6.4.0\standalone\tmp\vfs\temp\temp37cc445f15d51504\content-cfef83f66a6190fb\content-4543887875092173152.tmp (Accès refusé)

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

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

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

          at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:111) [jboss-vfs-3.2.10.Final-redhat-1.jar:3.2.10.Final-redhat-1]

          at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:109) [jboss-vfs-3.2.10.Final-redhat-1.jar:3.2.10.Final-redhat-1]

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

          at org.jboss.vfs.spi.RealFileSystem.doIoPrivileged(RealFileSystem.java:91) [jboss-vfs-3.2.10.Final-redhat-1.jar:3.2.10.Final-redhat-1]

          at org.jboss.vfs.spi.RealFileSystem.openInputStream(RealFileSystem.java:109) [jboss-vfs-3.2.10.Final-redhat-1.jar:3.2.10.Final-redhat-1]

          at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:254) [jboss-vfs-3.2.10.Final-redhat-1.jar:3.2.10.Final-redhat-1]

          at org.jboss.vfs.VirtualJarInputStream.openCurrent(VirtualJarInputStream.java:223) [jboss-vfs-3.2.10.Final-redhat-1.jar:3.2.10.Final-redhat-1]

          at org.jboss.vfs.VirtualJarInputStream.getNextJarEntry(VirtualJarInputStream.java:109) [jboss-vfs-3.2.10.Final-redhat-1.jar:3.2.10.Final-redhat-1]

          at org.jboss.vfs.VirtualJarInputStream.getNextJarEntry(VirtualJarInputStream.java:96) [jboss-vfs-3.2.10.Final-redhat-1.jar:3.2.10.Final-redhat-1]

          at org.jboss.vfs.VirtualJarInputStream.getNextEntry(VirtualJarInputStream.java:80) [jboss-vfs-3.2.10.Final-redhat-1.jar:3.2.10.Final-redhat-1]

          at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:210) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:230) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          at com.sun.faces.facelets.util.Classpath.search(Classpath.java:144) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          at com.sun.faces.facelets.util.Classpath.search(Classpath.java:104) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.loadURLs(MetaInfFacesConfigResourceProvider.java:164) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:108) [jsf-impl-2.1.28.redhat-10.jar:2.1.28.redhat-10]

          ... 17 more

       

      Obviously, it complains about an access problem on $JBOSS-HOME/standalone/tmp... This kind of problems happens often on Windows nowadays so I checked the directory security but I didn't find anything. The funny thing is that, running the same command a 2nd time it works successfully. Then running a 3rd time raises the same error and the 4th tim works, etc. Finally, it only works the even times. Intersrting isn't it ?

       

      Did anybody have this same issue ?

       

      Kind regards,

       

      Nicolas

        • 1. Re: jboss-as:deploy works only time to time
          Anup Dey Expert

          I think you should be fine if you just delete  C:\EAP-6.4.0\standalone\tmp  folder manually.

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

           

          Access denied errors may also be provoked by Windows Defender's Real Time Protection. Add the Wildfly folder to the Defender's list of exclusions. Windows "Access Denied" error is not only associated with lack of privileges but also with exclusive lock acquired by another process. You should check what process locks your files. You can use "Unlock" program for this task. It may be the case antivirus locked temporary files.

           

          If you are not using JSF Framework, you can remove these lines from your configuration (standalone.xml):

           

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

          And

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