Wildfly部署失败:JBAS014671和WFLYCTL0080 - 拒绝访问

时间:2016-01-13 02:49:10

标签: java windows java-ee wildfly

我们使用Deployment Scanner(" deployments"文件夹)为Wildfly部署了一个WAR文件。 Web应用程序一直有效,直到计算机重新启动 - 当服务器再次加载Web应用程序时,它会失败。值得一提的是,如果重新启动Wildfly服务,我们就不会遇到此问题,只有在整个操作系统重新启动时才会发生这种情况。如果我只是重新启动Wildfly,它会再次起作用。

如果我从deployments文件夹中删除了失败的文件标志(healthsafety-server.war.failed),则几秒钟后应用程序就会成功部署。

如果通过管理员控制台完成部署,则第一次失败。但是,如果应用程序被禁用然后再次启用,它也可以正常工作。

我们在Windows 10 Home(64位英语)上运行Wildfly 8.2.0 Final,但我们也尝试了Wildfly 9.0.2 Final,我们也有同样的行为。我们在使用Windows 8.1 64位Professional的另一台计算机上遇到了同样的问题。

Wildfly文件夹放在" C:\"文件夹和完全控制已提供给所有用户,包括"每个人"。 These steps也已应用,但问题仍然存在。

这是 Wildfly 8.2.0 Final healthsafety-server.war.failed 文件中的内容:

"{\"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)\"}}"

这是 Wildfly 9.0.2 Final healthsafety-server.war.failed 文件中的内容:

"{\"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:cross-post on JBoss forums

2 个答案:

答案 0 :(得分:8)

从win7升级到win10后,我遇到了同样的问题。问题似乎是由Windows Defender实时保护引起的。解决方法是在Defender中排除{wildfly folder} \ standalone \ tmp \ vfs文件夹。希望它也适合你。

答案 1 :(得分:-1)

请检查另一个stackoverflow帖子:Wildfly fails to deploy application (FileNotFoundException - Access is Denied)

您必须从配置中删除这些行(standalone.xml):

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

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