2 Replies Latest reply on May 14, 2018 11:32 AM by Tom Zhang

    Cannot deploy ear to jboss eap 7.1

    Tom Zhang Newbie

      .war sucess but .ear not

      1. file directory is:

      helloworld

           L WEB-INF

                     L web.xml

           HelloWorld.jsp

       

      The web.xml has the following string

      <web-app><display-name>Hello World</display-name></web-app>

       

      2. under helloworld directory

      I use

      jar cvf helloworld.ear *.*

      jar cvf helloworld1.war *.*

      so I will have two files.

      helloworld.ear

      helloworld1.war

      3. I copied these two files to

      jboss dir\standalone\deployments\

       

      4. start jboss server using:

      standalone

       

      5.

      http://localhost:8080/helloworld1/HelloWorld.jsp  work well

      http://localhost:8080/helloworld/HelloWorld.jsp  failed.

       

      6 From the log:

      In the log file, I see the related messages:

      11:44:18,959 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0027: Starting deployment of "helloworld1.war" (runtime-name: "helloworld1.war")

      11:44:18,959 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0027: Starting deployment of "helloworld.ear" (runtime-name: "helloworld.ear")

      11:44:19,819 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 65) WFLYUT0021: Registered web context: '/helloworld1' for server 'default-server'

      11:44:36,164 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Deployed "helloworld1.war" (runtime-name : "helloworld1.war")

      11:44:36,164 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Deployed "helloworld.ear" (runtime-name : "helloworld.ear")

       

      both are deployed.

      The only difference is ear not registered.

       

      Can someone help?

      thanks