使用Wildfly 10.0在Eclipse中部署EAR项目时出错

时间:2016-12-27 23:42:10

标签: jboss ejb wildfly ear

我正在尝试部署一个耳朵,但是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找不到它

1 个答案:

答案 0 :(得分:0)

如果您打包为EAR,那么所有的罐子,战争等都必须在耳朵内部,而不是在部署目录中的其他文件