2016-09-28 72 views
0

我在一段非常長的Java異常之後馬上得到這個錯誤。在JBoss4.2中部署戰爭時發生錯誤「等待部署者的軟件包」

我已檢查Maven上的Java JDK版本進行安裝,並且在服務器上運行(bin/run.bat),我在運行其他計算機上生成的另一個war文件時沒有問題。

的文件生成的包括:

  1. nameofproject-version
  2. nameofproject-version.war

什麼是可能引起此問題?

--- Packages waiting for a deployer --- 
[email protected] { url=file:***jboss/server/default/deploy/***-war-1.0/ } 
deployer: null 
status: null 
state: INIT_WAITING_DEPLOYER 
watch: file:***jboss/server/default/deploy/***-war-1.0/ 
altDD: null 
lastDeployed: 1475089977984 
lastModified: 1475089738113 
mbeans: 

--- Incompletely deployed packages --- 
[email protected] { url=***jboss/server/default/deploy/***-war-1.0.war } 
deployer: MBeanProxyExt[jboss.web:service=WebServer] 
status: Deployment FAILED reason: URL file:***jobss/server/default/tmp/deploy/tmp7284564640094328851***-war-1.0-exp.war/ deployment failed 
state: FAILED 
watch: file:***jboss/server/default/deploy/***-war-1.0.war 
altDD: null 
lastDeployed: 1475089965442 
lastModified: 1475089965348 
mbeans: 

[email protected] { url=file:***jboss/server/default/deploy/***-war-1.0/ } 
deployer: null 
status: null 
state: INIT_WAITING_DEPLOYER 
watch: file:***jboss/server/default/deploy/***-war-1.0/ 
altDD: null 
lastDeployed: 1475089977984 
lastModified: 1475089738113 
mbeans: 

--- MBeans waiting for other MBeans --- 
ObjectName: jboss.web.deployment:war=***-war-1.0.war,id=692573266 
State: FAILED 
Reason: org.jboss.deployment.DeploymentException: URL file:***jboss/server/default/tmp/deploy/tmp7284564640094328851***-war-1.0-exp.war/ deployment failed 

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- 
ObjectName: jboss.web.deployment:war=***-war-1.0.war,id=692573266 
State: FAILED 
Reason: org.jboss.deployment.DeploymentException: URL file:***jboss/server/default/tmp/deploy/tmp7284564640094328851***-war-1.0-exp.war/ deployment failed 

回答

1

由於有這麼多可能的原因,並且他們幾乎都在coderanch.com,甚至沒有答案。我會寫出對我有用的東西。

*部署者未檢測到Hibernate DBB連接,因此相關的異常跟蹤包括來自Hibernate的包。

它也可能由編譯時使用的不同JDK版本引起。

甚至由於缺少文件.war擴展名。