在 JBoss4.2 "Packages waiting for a deployer" 中部署 war 时出错

Error deploying war in JBoss4.2 "Packages waiting for a deployer"

在连续出现 Java 异常后,我立即收到此错误。

我已经检查 Maven 上的 Java JDK 版本来安装,对于服务器上的 运行 (bin/run.bat),我有没问题 运行 在其他计算机上生成另一个 war 个文件。

生成的文件包括:

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

可能导致此问题的原因是什么?

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@1338ffed { 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 ---
org.jboss.deployment.DeploymentInfo@2947d452 { 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:

org.jboss.deployment.DeploymentInfo@1338ffed { 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

因为可能的原因太多了,而且几乎都在coderanch.com,而且连答案都没有。我会写对我有用的东西。

*部署程序未检测到 Hibernate DBB 连接,因此相关的异常跟踪包括来自 Hibernate 的包。

也可能是编译时使用的JDK版本不同造成的。

或者甚至因为缺少 .war 扩展名的文件。