Error when using maven-ear-plugin - Does not match the war on the ear

0

I'm adding the maven-ear-plugin plugin to customize the context, but when deploying, Jboss does not find the war inside the ear.

I've got this setting: link

But it does not run with the addition of the plugin.

I'm using Jboss 7.0 EAP and Java 8.

The following is the error:

19:31:38,772 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Iniciando a implantação do "icommerce-ear-0.0.1-SNAPSHOT.ear" (runtime-name: "icommerce-ear-0.0.1-SNAPSHOT.ear")
19:31:38,873 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080
19:31:38,966 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."icommerce-ear-0.0.1-SNAPSHOT.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."icommerce-ear-0.0.1-SNAPSHOT.ear".STRUCTURE: WFLYSRV0153: Falha ao processar a fase STRUCTURE do deployment "icommerce-ear-0.0.1-SNAPSHOT.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(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0031: Não foi possível processar os módulos no application.xml para o EAR ["/C:/desenvolvimento/jboss-eap-7.0/standalone/deployments/icommerce-ear-0.0.1-SNAPSHOT.ear"], o com.study.teste-icommerce-war-0.0.1-SNAPSHOT.war do arquivo do módulo não foi encontrado
    at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:186)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
    ... 5 more



19:31:39,670 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Falha na operação ("deploy") - endereço ([("deployment" => "icommerce-ear-0.0.1-SNAPSHOT.ear")]) - falha na descrição: {"WFLYCTL0080: Falha de serviços" => {"jboss.deployment.unit.\"icommerce-ear-0.0.1-SNAPSHOT.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"icommerce-ear-0.0.1-SNAPSHOT.ear\".STRUCTURE: WFLYSRV0153: Falha ao processar a fase STRUCTURE do deployment \"icommerce-ear-0.0.1-SNAPSHOT.ear\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0031: Não foi possível processar os módulos no application.xml para o EAR [\"/C:/desenvolvimento/jboss-eap-7.0/standalone/deployments/icommerce-ear-0.0.1-SNAPSHOT.ear\"], o com.study.teste-icommerce-war-0.0.1-SNAPSHOT.war do arquivo do módulo não foi encontrado"}}
19:31:39,748 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 35) WFLYSRV0010: Implantado "icommerce-ear-0.0.1-SNAPSHOT.ear" (runtime-name: "icommerce-ear-0.0.1-SNAPSHOT.ear")
19:31:39,748 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Relatório
 de status de serviço WFLYCTL0186: Serviços que falham na inicialização:      service jboss.deployment.unit."icommerce-ear-0.0.1-SNAPSHOT.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."icommerce-ear-0.0.1-SNAPSHOT.ear".STRUCTURE: WFLYSRV0153: Falha ao processar a fase STRUCTURE do deployment "icommerce-ear-0.0.1-SNAPSHOT.ear"


19:31:40,018 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: JBoss EAP 7.0.0.GA (WildFly Core 2.1.2.Final-redhat-1) iniciado (com erros) em 3901ms - Iniciado 347 de serviços 635 (1 serviços falharam ou faltam dependência, os serviços 391 são lazy, passivos ou em demanda)
19:31:40,035 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Implantação encerrada icommerce-ear-0.0.1-SNAPSHOT.ear (runtime-name: icommerce-ear-0.0.1-SNAPSHOT.ear) em 2ms
19:31:40,113 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0009: Desimplantado "icommerce-ear-0.0.1-SNAPSHOT.ear" (runtime-name: "icommerce-ear-0.0.1-SNAPSHOT.ear")
19:31:40,113 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Relatório
 de status de serviço WFLYCTL0186: Serviços que falham na inicialização:      service jboss.deployment.unit."icommerce-ear-0.0.1-SNAPSHOT.ear".STRUCTURE

19:31:44,786 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Encontrado icommerce-ear-0.0.1-SNAPSHOT.ear no diretório da implantação. Crie um arquivo chamado icommerce-ear-0.0.1-SNAPSHOT.ear.dodeploy para aplicar o trigger na implantação

The pom.xml of the EAR project follows:

<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>
    <parent>
        <groupId>com.study.teste</groupId>
        <artifactId>icommerce-pom</artifactId>
        <version>0.0.1-SNAPSHOT</version>
    </parent>

    <artifactId>icommerce-ear</artifactId>
    <packaging>ear</packaging>


    <dependencies>
        <dependency>
            <groupId>com.study.teste</groupId>
            <artifactId>icommerce-war</artifactId>
            <version>${project.version}</version>
            <type>war</type>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-ear-plugin</artifactId>
                <version>3.0.1</version>
                <configuration>
                    <defaultLibBundleDir>lib</defaultLibBundleDir>
                    <modules>
                        <webModule>
                            <groupId>com.study.teste</groupId>
                            <artifactId>icommerce-war</artifactId>
                            <contextRoot>/icommerce</contextRoot>
                        </webModule>
                    </modules>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
    
asked by anonymous 30.09.2018 / 01:02

0 answers