Not able to deploy in deployed .war seeing myproject.war.undeployed

Discussão em 'StackOverflow' iniciado por Stack, Janeiro 5, 2021.

  1. Stack

    Stack Membro Participativo

    I'm new in development with JavaEE. I have code from my friend - a Maven Project. When I try to build it in maven and deploy by maven deploy plugin (writing "wildfly:deploy") I have got an exception during deployment of the war.

    I have received following exception in server.log:


    WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."com.nada.jar".POST_MODULE service jboss.deployment.subunit."coivoiturage-ear.ear"."coivoiturage-web.war".INSTALL

    21:10:05,410 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found coivoiturage-ear.ear in deployment directory. To trigger deployment create a file called coivoiturage-ear.ear.dodeploy

    21:10:05,411 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found com.nada.jar in deployment directory. To trigger deployment create a file called com.nada.jar.dodeploy

    21:10:05,411 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found FabricaEAR.ear in deployment directory. To trigger deployment create a file called FabricaEAR.ear.dodeploy
    ​

    My pom.xml is as follows

    <?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>
    <parent>
    <groupId>pfa.covoit</groupId>
    <artifactId>coivoiturage</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    </parent>
    <artifactId>coivoiturage-ear</artifactId>
    <packaging>ear</packaging>

    <dependencies>
    <dependency>
    <groupId>pfa.covoit</groupId>
    <artifactId>coivoiturage-web</artifactId>
    <type>war</type>
    </dependency>
    <dependency>
    <groupId>pfa.covoit</groupId>
    <artifactId>coivoiturage-ejb</artifactId>
    <type>ejb</type>
    </dependency>
    <dependency>
    <groupId>org.wildfly</groupId>
    <artifactId>wildfly-ejb-client-bom</artifactId>
    <version>9.0.0.Alpha1</version>
    <type>pom</type>
    </dependency>
    </dependencies>

    <build>
    <finalName>${project.artifactId}</finalName>
    <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-ear-plugin</artifactId>
    <version>${version.ear.plugin}</version>
    <configuration>
    <version>7</version>
    <fileNameMapping>no-version</fileNameMapping>
    </configuration>
    </plugin>
    <plugin>
    <groupId>org.wildfly.plugins</groupId>
    <artifactId>wildfly-maven-plugin</artifactId>
    <version>${version.wildfly.maven.plugin}</version>
    <configuration>
    <filename>${project.artifactId}.ear</filename>
    <port>19990</port>
    </configuration>
    <executions>
    <execution>
    <phase>install</phase>
    <goals>
    <goal>deploy</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    </plugins>
    </build>



    i am not able deploy my war properly .I didnt see any reference to my war deployment in server.log or i didnt see any error also. can someone help me please

    Continue reading...

Compartilhe esta Página