2016-12-27 224 views
0

我想部署一個耳朵,但是Eclipse給我一個錯誤:錯誤在Eclipse中Wildfly部署EAR項目10.0

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沒有找到它

回答

0

如果你打包成EAR,那麼所有的jar,戰爭等都必須放在耳朵本身內部,不像其他fil es在部署目錄中