【问题标题】:Error deploying EAR project in Eclipse with Wildfly 10.0使用 Wildfly 10.0 在 Eclipse 中部署 EAR 项目时出错
【发布时间】:2017-05-12 05:38:58
【问题描述】:

我正在尝试部署一个耳朵,但 eclipse 给了我一个错误:

16:23:15,844 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0028: Stopped deployment licensemgr-ear.ear (runtime-name: licensemgr-ear.ear) in 1ms
16:23:15,847 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0027: Starting deployment of "licensemgr-ear.ear" (runtime-name: "licensemgr-ear.ear")
16:23:15,850 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."licensemgr-ear.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."licensemgr-ear.ear".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment "licensemgr-ear.ear"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0031: Unable to process modules in application.xml for EAR ["/C:/AS/wildfly-10.0.0.Final/standalone/deployments/licensemgr-ear.ear"], module file licensemgr-bl.jar not found
    at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:186)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
    ... 5 more

16:23:15,851 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"licensemgr-ear.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"licensemgr-ear.ear\".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment \"licensemgr-ear.ear\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0031: Unable to process modules in application.xml for EAR [\"/C:/AS/wildfly-10.0.0.Final/standalone/deployments/licensemgr-ear.ear\"], module file licensemgr-bl.jar not found"}}
16:23:15,882 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0016: Replaced deployment "licensemgr-ear.ear" with deployment "licensemgr-ear.ear"
16:23:15,883 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report
WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."licensemgr-ear.ear".STRUCTURE
      service jboss.deployment.unit."licensemgr-ear.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."licensemgr-ear.ear".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment "licensemgr-ear.ear"

这是我的 application.xml:

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:application="http://java.sun.com/xml/ns/javaee" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" id="Application_ID" version="6">
  <display-name>licensemgr-ear</display-name>
  <module>
    <ejb>licensemgr-bl.jar</ejb>
  </module>
  <module>
    <web>
      <web-uri>licensemgr-web.war</web-uri>
      <context-root>licensemgr-web</context-root>
    </web>
  </module>
</application>

帮助....我 :'v 丢失的 jar 在 deploy 文件夹中,但是 wildfly 找不到它

【问题讨论】:

    标签: jboss ejb wildfly ear


    【解决方案1】:

    如果您要打包为 EAR,那么所有 jars、wars 等都必须在 EAR 内部,而不是部署目录中的其他文件

    【讨论】:

      猜你喜欢
      • 2015-12-28
      • 1970-01-01
      • 2018-11-25
      • 1970-01-01
      • 1970-01-01
      • 2013-05-13
      • 2017-02-01
      • 1970-01-01
      • 2018-07-26
      相关资源
      最近更新 更多