未能启动服务jboss.deployment.unit.“leqadoviprojekt-ear-1.1.ear”结构:

6tdlim6h  于 2021-06-29  发布在  Java
关注(0)|答案(1)|浏览(323)

我用父pom项目和几个模块开发javaee应用程序。我有2个ejb模块,1个web(war)模块和1个ear模块。当我尝试将ear模块部署到wildfy 21.0.0时,服务器出现错误:error[org.jboss.msc.service.fail](msc service thread 1-5)msc000001:未能启动服务jboss.module.service。“deployment.leqadoviprojekt-ear-1.1.ear”。main:org.jboss.msc.service.startexception in service jboss.module.service。“deployment.leqadoviprojekt-ear-1.1.ear”。main:wflysrv0179:未能加载模块:deployment.leqadoviprojekt-ear-1.1.ear位于org.jboss.as.server.moduleservice.moduleloadservice.start(moduleloadservice)。java:116)在org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl。java:1739)在org.jboss.msc.service.servicecontrollerimpl$starttask.execute(servicecontrollerimpl。java: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>

如果有任何帮助或建议,我将不胜感激。

rfbsl7qr

rfbsl7qr1#

这就是全部错误:

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

我重写了wildfly-javaee8.pom.pom中的一些依赖项,或者我向每个模块添加了目标运行时,这是mybe的错误吗?

相关问题