2016-01-13 429 views
4

我們已經使用Deployment Scanner(「部署」文件夾)將WAR文件部署到Wildfly。 Web應用程序一直運行,直到計算機重新啓動 - 當服務器再次加載Web應用程序時失敗。值得一提的是,如果Wildfly服務重新啓動,我們沒有這個問題,只有在整個操作系統重新啓動時纔會發生。如果我只是重新啓動Wildfly,它會再次運行。Wild deploy部署失敗:JBAS014671和WFLYCTL0080 - 訪問被拒絕

如果我從deployments文件夾中刪除了失敗的文件標誌(healthsafety-server.war.failed),那麼應用程序將在幾秒鐘後成功部署。

如果部署是通過管理員控制檯完成的,則首次出現故障。但是,如果應用程序被禁用,然後再次啓用,它也可以工作。

我們在Windows 10 Home(64位英文版)上運行Wildfly 8.2.0 Final,但我們也嘗試過Wildfly 9.0.2 Final,我們也得到了相同的行爲。我們在Windows 8.1 64位專業版的另一臺計算機上遇到了同樣的問題。

將Wildfly文件夾放置在「C:\」文件夾中,並向所有用戶(包括「所有人」)提供完全控制。 These steps也適用,但問題依然存在。

這是從healthsafety-server.war.failed文件上Wildfly 8.2.0最終內容:

 
"{\"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內容。

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

任何幫助表示讚賞:上Wildfly 9.0.2最終失敗文件。

PS:cross-post on JBoss forums

+0

在IDE中是否有WildFly實例?我發現這給我帶來了許多與您遇到的問題類似的問題(內容低於$ {JBOSS_HOME}/standalone/tmp/vfs/temp /)。 我建議從工作區中刪除服務器,並用新的目錄替換$ {JBOSS_HOME}/standalone目錄(只需再次下載它)。然後避免從IDE啓動服務器......只能使用命令行。 –

+0

Hi @DuranWesleyHarris,我們在IDE外部使用WildFly,並且始終作爲(Windows)服務或命令行運行,如您所述。 – wcomnisky

+0

你有沒有試過刪除tmp文件夾?我會嘗試第一個 您是否正在部署爆炸或未爆炸的檔案?只是要嘗試,但也許嘗試更改部署掃描儀自動部署? (不需要添加.doDeploy標記...) –

回答

6

從win7升級到win10我有同樣的問題。問題似乎是由Windows Defender實時保護引起的。解決方案是排除Defender中的{wildfly文件夾} \ standalone \ tmp \ vfs文件夾。希望它也能爲你工作。