您好我在Eclipse Kepler中创建了一个项目并将其部署到我当地的WildFly服务器上,一切正常。我有一个非常基本的项目连接到一个oracle db,jpa,ejb,webproj都在耳边。但是当我尝试部署到我的Linux服务器时,会发生以下情况。 1)它开始将文件复制到独立部署目录-ok 2)当它达到约52%时,它会挂起以下命令" 创建远程目录:/usr/local/wildfly-8.1.0.Final/standalone/deployments/ADTF_EAR.ear/ADTF_EJB.jar
显示无错误消息。但这是日志文件中的内容:
2015-01-19 20:43:12,602 INFO [org.wildfly.extension.undertow] (MSC service thread 1-6) JBAS017535: Unregistered web context: /ADTF_WebProj
2015-01-19 20:43:12,614 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 177) JBAS011410: Stopping Persistence Unit (phase 2 of 2) Service
'ADTF_EAR.ear#Test-Persistence'
2015-01-19 20:43:12,618 INFO [org.jboss.weld.deployer] (MSC service thread 1-16) JBAS016009: Stopping weld service for deployment ADTF_EAR.ear
2015-01-19 20:43:12,625 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 177) JBAS011410: Stopping Persistence Unit (phase 1 of 2) Service
'ADTF_EAR.ear#Test-Persistence'
2015-01-19 20:43:12,633 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015974: Stopped subdeployment (runtime-name: ADTF_EJB
.jar) in 34ms
2015-01-19 20:43:12,662 INFO [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015974: Stopped subdeployment (runtime-name: ADTF_We
bProj.war) in 62ms
2015-01-19 20:43:12,668 INFO [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015877: Stopped deployment ADTF_EAR.ear (runtime-nam
e: ADTF_EAR.ear) in 69ms
2015-01-19 20:43:12,669 INFO [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015876: Starting deployment of "ADTF_EAR.ear" (runtim
e-name: "ADTF_EAR.ear")
2015-01-19 20:43:12,672 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-9) MSC000001: Failed to start service jboss.deployment.unit."ADT
F_EAR.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."ADTF_EAR.ear".STRUCTURE: JBAS018733: Failed to proce
ss phase STRUCTURE of deployment "ADTF_EAR.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8
.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.F
inal]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011037: Unable to process modules in application.xml for EAR ["/
usr/local/wildfly-8.1.0.Final/standalone/deployments/ADTF_EAR.ear"], module file ADTF_EJB.jar not found
at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:187)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8
.1.0.Final]
... 5 more
2015-01-19 20:43:12,675 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014613: Operation ("full-replace
-deployment") failed - address: ([]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"ADTF_EAR.ear\".STRUCTURE"
=> "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"ADTF_EAR.ear\".STRUCTURE: JBAS018733: Failed to process phase STRUCT
URE of deployment \"ADTF_EAR.ear\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011037: Unable to process modules in application.xml for EAR
[\"/usr/local/wildfly-8.1.0.Final/standalone/deployments/ADTF_EAR.ear\"], module file ADTF_EJB.jar not found"}}
2015-01-19 20:43:12,695 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018565: Replaced deployment "ADTF_EAR.ear" with deploymen
t "ADTF_EAR.ear"
我希望有人可以提供帮助,或者至少指出我正确的方向来解决这个问题。谢谢。