我开发的Java EE应用程序与父pom项目和一些模块。我有两个EJB模块,一个web (war)模块和一个EAR模块。当我尝试将ear模块部署到Wildfy 21.0.0时,服务器出现错误: ERROR org.jboss.msc.service.fail MSC000001: Failed to start service jboss.module.service."deployment.LeqadoviProjekt-ear-1.1.ear".main: MSC000001: Failed to load module: org.jboss.msc.service.StartException :Failed to load jboss.module.service."deployment.LeqadoviProjekt-ear-1.1.ear".main::WFLYSRV0179。load MSC000001-1.1.ear at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:116) at org.jboss.msc.serviceorg.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)上的.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
我使用的IDE是Eclipse。项目结构:here。如果我有父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>
如果有任何帮助或建议,我将不胜感激。
发布于 2020-12-29 03:53:15
这就是完整的错误:
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错误,我向每个模块添加了目标运行时?
https://stackoverflow.com/questions/65483189
复制相似问题