无法处理部署的阶段结构

时间:2015-02-10 16:10:43

标签: jboss

我正在努力将应用程序从WAS 7迁移到Jboss 7.1.0 final。该应用程序是使用Java 6编写的。由于Java 6仅与Jboss 7兼容,因此我使用Jboss 7.1.0 final进行了相同的设置。
我能够成功构建应用程序,但在部署时我收到以下错误: 你能帮我解决一下这个问题吗?

10:23:11,101 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "WSE_CustomerAccountEligibilityService.ear"
10:23:11,101 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.unit."WSE_CustomerAccountEligibilityService.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."WSE_CustomerAccountEligibilityService.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "WSE_CustomerAccountEligibilityService.ear"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_38]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_38]
    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_38]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011037: Unable to process modules in application.xml for EAR ["/C:/Kavita/Software/jboss-as-7.1.0.Final/jboss-as-7.1.0.Final/bin/content/WSE_CustomerAccountEligibilityService.ear"], module file WSW_CustomerAccountEligibilityService.war not found
    at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:168)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
    ... 5 more

10:23:11,102 INFO  [org.jboss.as.server] (HttpManagementService-threads - 3) JBAS015870: Deploy of deployment "WSE_CustomerAccountEligibilityService.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"WSE_CustomerAccountEligibilityService.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WSE_CustomerAccountEligibilityService.ear\**".STRUCTURE: Failed to process phase STRUCTURE of deployment \"WSE_CustomerAccountEligibilityService.ear\""}}**
10:23:11,102 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment WSE_CustomerAccountEligibilityService.ear in 0ms
10:23:11,105 INFO  [org.jboss.as.controller] (HttpManagementService-threads - 3) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."WSE_CustomerAccountEligibilityService.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."WSE_CustomerAccountEligibilityService.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "WSE_CustomerAccountEligibilityService.ear"

3 个答案:

答案 0 :(得分:6)

Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011037: Unable to process modules in application.xml for EAR ["/C:/Kavita/Software/jboss-as-7.1.0.Final/jboss-as-7.1.0.Final/bin/content/WSE_CustomerAccountEligibilityService.ear"], module file WSW_CustomerAccountEligibilityService.war not found

你的application.xml声明了一场战争,但它并不存在于耳中。确保您的耳朵具有application.xml

中声明的所有模块

答案 1 :(得分:0)

在我的情况下,团队中的某个人手动将损坏的文件复制到.ear文件夹中,因此jboss在部署期间无法识别/理解/解压缩并抛出以下异常。

jboss.deployment.unit。“MyApp.ear”.STRUCTURE:JBAS018733:无法处理部署“MyApp.ear”的相位结构& org.jboss.as.server.deployment.DeploymentUnitProcessingException:JBAS011060:无法处理EAR的子项

一旦我们删除了损坏的文件,目前.ear文件夹并启动了jboss或重新部署,修复了问题。

任何儿童战争/ WEB-INF / lib文件夹中的损坏的jar也会导致此问题。

答案 2 :(得分:-1)

我在JBoss 7.1.0和Java 6 EE中发现了同样的错误。我解决了JBoss 7.1.1的升级问题。