8 Replies Latest reply on Mar 18, 2014 12:09 PM by Stefanos Pliakos

    Unable to deploy WAR in JBoss AS 7.1.1 domain mode

    Mitchell Ackerman Newbie

      Hi, i'm unable to deploy a WAR file in my JBoss AS 7.1.1 cluster.  I have a domain manager, and 4 slave servers in the cluster.  In Manage Deployments, Server Groups Deployment, I click Add Content.  From the dialog I select my WAR file and click next.  The file appears to upload file, however, the dialog never changes, and remains on Step 1/2.  All I can do is click Next, which uploads the file again, or cancel, which cancels the deployment.  I can never get the WAR uploaded or deployed to the servers.

       

      I have checked the logs (host-controller.log & process-controller.log), and see nothing to indicate an error.  I also don't see anything in the logs regarding the deployment.

       

      Any idea what is going on here?

       

      thanks, Mitchell

        • 1. Re: Unable to deploy WAR in JBoss AS 7.1.1 domain mode
          Mitchell Ackerman Newbie

          The problem was that I had removed some extensions/subsystems from domain.xml.  Apparently I removed some needed by the Admin console, without which it would not work.

          • 2. Re: Unable to deploy WAR in JBoss AS 7.1.1 domain mode
            Tomaz Cerar Master

            Hi,

             

            admin console does need any extension/subsystem to be enabled same goes for CLI console.

            they both connect directly to managment backbone and communicate with it.

            Extensions are the ones that register to managment and not vice-versa...

             

            i would really like to know why it started to work as i dont think extensions had anything to do with it, or at least with admin console.

            It might be that you needed some of thoose extensions for your application...

             

             

            --

            tomaz

            • 3. Re: Unable to deploy WAR in JBoss AS 7.1.1 domain mode
              Mitchell Ackerman Newbie

              The problem occurred with the Admin gui, after the file uploaded, it would never get beyond Step 1 or 2, clicking next would re-upload the file.  The problem really was associated with the extensions included in domain.xml.  At the point of uploading the file to the domain manager, does JBoss even care about the application dependencies?  I would have thought that would be releveant when attempting to run the application.  In any case, here are the extensions that did not work:

               

                  <extensions>

                      <extension module="org.jboss.as.clustering.infinispan"/>

                      <extension module="org.jboss.as.clustering.jgroups"/>

                      <extension module="org.jboss.as.configadmin"/>

                      <extension module="org.jboss.as.connector"/>

                      <extension module="org.jboss.as.ee"/>

                      <extension module="org.jboss.as.jacorb"/>

                      <extension module="org.jboss.as.jaxrs"/>

                      <extension module="org.jboss.as.jdr"/>

                      <extension module="org.jboss.as.jmx"/>

                      <extension module="org.jboss.as.jsr77"/>

                      <extension module="org.jboss.as.logging"/>

                      <extension module="org.jboss.as.messaging"/>

                      <extension module="org.jboss.as.naming"/>

                      <extension module="org.jboss.as.osgi"/>

                      <extension module="org.jboss.as.remoting"/>

                      <extension module="org.jboss.as.sar"/>

                      <extension module="org.jboss.as.security"/>

                      <extension module="org.jboss.as.threads"/>

                      <extension module="org.jboss.as.transactions"/>

                      <extension module="org.jboss.as.web"/>

                      <extension module="org.jboss.as.weld"/>

                  </extensions>

               

              and here are the extensions that do work:

               

                  <extensions>

                      <extension module="org.jboss.as.configadmin"/>

                      <extension module="org.jboss.as.connector"/>

                      <extension module="org.jboss.as.ee"/>

                      <extension module="org.jboss.as.ejb3"/>

                      <extension module="org.jboss.as.jacorb"/>

                      <extension module="org.jboss.as.jaxrs"/>

                      <extension module="org.jboss.as.jdr"/>

                      <extension module="org.jboss.as.jmx"/>

                      <extension module="org.jboss.as.jsr77"/>

                      <extension module="org.jboss.as.logging"/>

                      <extension module="org.jboss.as.messaging"/>

                      <extension module="org.jboss.as.naming"/>

                      <extension module="org.jboss.as.osgi"/>

                      <extension module="org.jboss.as.remoting"/>

                      <extension module="org.jboss.as.security"/>

                      <extension module="org.jboss.as.threads"/>

                      <extension module="org.jboss.as.transactions"/>

                      <extension module="org.jboss.as.web"/>

                      <extension module="org.jboss.as.weld"/>

                  </extensions>

               

              If i recall correctly, the key was the ejb3 extension.  It is needed by the application for JMS.

              • 4. Re: Unable to deploy WAR in JBoss AS 7.1.1 domain mode
                Wolf-Dieter Fink Master

                As AS7 start only the modules that are in use I would not recommend to remove subsystems from the configuration, except it is for security reason like JMX console or you'll ensure that it can not be used (e.g. JMS)

                • 5. Re: Unable to deploy WAR in JBoss AS 7.1.1 domain mode
                  Mitchell Ackerman Newbie

                  I am seeing this failure in another cluster now.  In this cluster no subsystems or extensions were removed (just the unused profiles).  The domain manager is running in the amazon cloud, and similarly, attempting to upload results in the dialog remaining in place and clicking next retries the upload.  I see this in the console.log:

                   

                  [Host Controller] 17:35:58,458 WARN  [org.jboss.as.deployment] (HttpManagementService-threads - 4) JBAS010806: Caught exception closing input stream: java.io.IOException: Stream closed

                  [Host Controller]       at java.io.BufferedInputStream.getBufIfOpen(Unknown Source) [rt.jar:1.6.0_30]

                  [Host Controller]       at java.io.BufferedInputStream.read(Unknown Source) [rt.jar:1.6.0_30]

                  [Host Controller]       at org.jboss.sun.net.httpserver.FixedLengthInputStream.readImpl(FixedLengthInputStream.java:54)

                  [Host Controller]       at org.jboss.sun.net.httpserver.LeftOverInputStream.drain(LeftOverInputStream.java:112)

                  [Host Controller]       at org.jboss.sun.net.httpserver.LeftOverInputStream.close(LeftOverInputStream.java:69)

                  [Host Controller]       at org.jboss.as.domain.http.server.multipart.BoundaryDelimitedInputStream.close(BoundaryDelimitedInputStream.java:213) [jboss-as-domain-http-interface-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.domain.controller.operations.deployment.AbstractDeploymentUploadHandler.safeClose(AbstractDeploymentUploadHandler.java:77) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.domain.controller.operations.deployment.AbstractDeploymentUploadHandler.execute(AbstractDeploymentUploadHandler.java:60) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.domain.controller.operations.coordination.OperationCoordinatorStepHandler.executeDirect(OperationCoordinatorStepHandler.java:161) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.domain.controller.operations.coordination.OperationCoordinatorStepHandler.execute(OperationCoordinatorStepHandler.java:112) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.domain.controller.operations.coordination.PrepareStepHandler.execute(PrepareStepHandler.java:85) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:121) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:309) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:299) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.domain.http.server.DomainApiHandler.processUploadRequest(DomainApiHandler.java:247) [jboss-as-domain-http-interface-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.domain.http.server.DomainApiHandler.doHandle(DomainApiHandler.java:181) [jboss-as-domain-http-interface-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.domain.http.server.DomainApiHandler.handle(DomainApiHandler.java:208) [jboss-as-domain-http-interface-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.as.domain.http.server.security.SubjectAssociationHandler.handle(SubjectAssociationHandler.java:51) [jboss-as-domain-http-interface-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)

                  [Host Controller]       at org.jboss.sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:69)

                  [Host Controller]       at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)

                  [Host Controller]       at org.jboss.sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:710)

                  [Host Controller]       at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)

                  [Host Controller]       at org.jboss.as.domain.http.server.RealmReadinessFilter.doFilter(RealmReadinessFilter.java:54) [jboss-as-domain-http-interface-7.1.1.Final.jar:7.1.1.Final]

                  [Host Controller]       at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)

                  [Host Controller]       at org.jboss.sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:682)

                  [Host Controller]       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_30]

                  [Host Controller]       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_30]

                  [Host Controller]       at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_30]

                  [Host Controller]       at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]

                  [Host Controller]

                  • 6. Re: Unable to deploy WAR in JBoss AS 7.1.1 domain mode
                    Tomaz Cerar Master

                    Mitchell,

                     

                    can you try with latest nightly build (7.2.x)

                    as lots of problems in this area ware addressed.

                     

                     

                    --

                    tomaz

                    • 7. Re: Unable to deploy WAR in JBoss AS 7.1.1 domain mode
                      Mitchell Ackerman Newbie

                      Thanks Tomaz, but I tried with the nightly build a couple of days ago and had another error, see the latest post in https://community.jboss.org/message/737727#737727

                      • 8. Re: Unable to deploy WAR in JBoss AS 7.1.1 domain mode
                        Stefanos Pliakos Newbie

                        I had just the same error as you did. From management console i enabled OSGi bundle for master and deployment worked!