![](/img/trans.png)
[英]Jboss server error : Failed to start service jboss.deployment.unit."jbpm-console.war"
[英]Failed to start service jboss.deployment.unit.“LeqadoviProjekt-ear-1.1.ear”.STRUCTURE:
我使用父 pom 项目和几个模块开发 Java EE 应用程序。 我有 2 个 EJB 模块、1 个 web(战争)模块和 1 个 EAR 模块。 当我尝试将 ear 模块部署到 Wildfy 21.0.0 时,服务器出现错误:错误 [org.jboss.msc.service.fail](MSC 服务线程 1-5)MSC000001:无法启动服务 Z9764DC122BE894C72F6316Z.module .service."deployment.LeqadoviProjekt-ear-1.1.ear".main: org.jboss.msc.service.StartException 在服务 jboss.module.service."deployment.V.LeqadoviProjek:-WF-SR.V.1. Failed to load module: deployment.LeqadoviProjekt-ear-1.1.ear at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:116) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService( ServiceControllerImpl.java:1739) 在 org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.Z93F725A07423FE1C8 89F448B33D21F46Z:1701)
我使用的 IDE 是 Eclipse。 项目结构:这里。 如果我有父pom项目或者我必须部署父项目,部署ear模块是否正确?
The context of parent pom was next:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.efd.hsostaric.svi</groupId>
<artifactId>LeadoviProjekt_svi</artifactId>
<version>0.0.1</version>
<url>http://www.wildfly.org</url>
<packaging>pom</packaging>
<name>LeadoviProjekt_svi</name>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.wildfly.maven.plugin>2.0.1.Final</version.wildfly.maven.plugin>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.wildfly.bom</groupId>
<artifactId>wildfly-javaee8-with-tools</artifactId>
<version>17.0.1.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>2.0.1.Final</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<modules>
<module>LeadoviProjekt-war</module>
<module>LeadoviProjekt-ejb</module>
<module>LeadoviProjekt-ejb-bll</module>
<module>LeqadoviProjekt-ear</module>
</modules>
</project>
对于任何帮助或建议,我将不胜感激。
这是完整的错误:
20:49:18,831 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."LeqadoviProjekt-ear-1.1.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."LeqadoviProjekt-ear-1.1.ear".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment "LeqadoviProjekt-ear-1.1.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:189)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0031: Unable to process modules in application.xml for EAR ["/C:/Users/Hrvoje-PC/wildfly-21.0.0.Final/standalone/data/managed-exploded/LeqadoviProjekt-ear-1.1.ear"], module file org.efd.hsostaric-LeadoviProjekt-ejb-1.1.jar not found
at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:187)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
... 8 more
20:49:18,842 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "LeqadoviProjekt-ear-1.1.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"LeqadoviProjekt-ear-1.1.ear\".STRUCTURE" => "WFLYSRV0153: Failed to process phase STRUCTURE of deployment \"LeqadoviProjekt-ear-1.1.ear\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0031: Unable to process modules in application.xml for EAR [\"/C:/Users/Hrvoje-PC/wildfly-21.0.0.Final/standalone/data/managed-exploded/LeqadoviProjekt-ear-1.1.ear\"], module file org.efd.hsostaric-LeadoviProjekt-ejb-1.1.jar not found"}}
20:49:18,844 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "LeqadoviProjekt-ear-1.1.ear" was rolled back with the following failure message:
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"LeqadoviProjekt-ear-1.1.ear\".STRUCTURE" => "WFLYSRV0153: Failed to process phase STRUCTURE of deployment \"LeqadoviProjekt-ear-1.1.ear\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0031: Unable to process modules in application.xml for EAR [\"/C:/Users/Hrvoje-PC/wildfly-21.0.0.Final/standalone/data/managed-exploded/LeqadoviProjekt-ear-1.1.ear\"], module file org.efd.hsostaric-LeadoviProjekt-ejb-1.1.jar not found"}}
20:49:18,848 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0028: Stopped deployment LeqadoviProjekt-ear-1.1.ear (runtime-name: LeqadoviProjekt-ear-1.1.ear) in 3ms
mybe 错误是我覆盖了 Wildfly-javaee8.pom.pom 的一些依赖项还是我将目标运行时添加到每个模块的 mybe?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.