3 Replies Latest reply on Jun 19, 2013 12:28 PM by John Carver

    App deployment failed - where are the error details?

    John Carver Newbie

      JBoss EAP 6.1 on Red Hat Enterprise Linux Server 6.  JBoss running in standalone mode

       

      After deploying a war file from the management console, while enabling it (again from the management console), i see a warning message on the top. Clicking on which i see

      Failed to enable DDDispatch.war.

      Request

      {

          "address" => [("deployment" => "DDDispatch.war")],

          "operation" => "deploy"

      }

       

      Response

       

      Internal Server Error

      {

          "outcome" => "failed",

          "failure-description" => {"JBAS014671: Failed services" =>

                {"jboss.web.deployment.default-host./DDDispatch" =>

                        "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./DDDispatch:

                         org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context

                         Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context"}},

          "rolled-back" => true

      }

      I am assuming this is caused by a missing jar or so. But how do i know which jar is missing? My server.log has no trace of anything being deployed or any errors. I tried increasin teh console logging to TRACE, to no effect.

       

          <subsystem xmlns="urn:jboss:domain:logging:1.2">
              <console-handler name="CONSOLE">
                  <level name="TRACE"/>
                  <formatter>
                      <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                  </formatter>
              </console-handler>
              <periodic-rotating-file-handler name="FILE" autoflush="true">
                  <formatter>
                      <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                  </formatter>
                  <file relative-to="jboss.server.log.dir" path="server.log"/>
                  <suffix value=".yyyy-MM-dd"/>
                  <append value="true"/>
              </periodic-rotating-file-handler>
              <logger category="com.arjuna">
                  <level name="WARN"/>
              </logger>
              <logger category="org.apache.tomcat.util.modeler">
                  <level name="WARN"/>
              </logger>
              <logger category="org.jboss.as.config">
                  <level name="TRACE"/>
              </logger>
              <logger category="sun.rmi">
                  <level name="WARN"/>
              </logger>
              <logger category="jacorb">
                  <level name="WARN"/>
              </logger>
              <logger category="jacorb.config">
                  <level name="ERROR"/>
              </logger>
              <root-logger>
                  <level name="INFO"/>
                  <handlers>
                      <handler name="CONSOLE"/>
                      <handler name="FILE"/>
                  </handlers>
              </root-logger>
          </subsystem>
        • 1. Re: App deployment failed - where are the error details?
          jaikiran pai Master

          The server.log should have had the details. Can you attach that server.log file here, please?

          1 of 1 people found this helpful
          • 2. Re: App deployment failed - where are the error details?
            John Carver Newbie

            Noting showed up in the server.log by default. After adding the following lines to standlone.xml,

                   <logger category="org.jboss.web">
                        <level name="ALL"/>
                    </logger>
                    <logger category="org.jboss.msc">
                        <level name="ALL"/>
                    </logger>

            the following shows up

             

            21:45:34,501 DEBUG [org.jboss.web] (MSC service thread 1-25) Resolved order: [ commons-io.jar asm-util-2.2.2.jar saaj.jar antlr-2.7.6.jar commons-logging.jar DDDispatch.jar Jabsorb1.2.jar ehcache-1.2.3.jar iText-2.0.7.jar commons-logging-1.0.4.jar commons-lang.jar asm-2.2.2.jar commons-discovery-0.2.jar hibernate3.jar standard.jar spring.jar cglib-nodep-2.1_3.jar axis.jar commons-collections.jar dom4j-1.6.1.jar jstl.jar asm-commons-2.2.2.jar jaxrpc.jar ]

            21:45:34,741 INFO  [org.jboss.web] (ServerService Thread Pool -- 99) JBAS018210: Register web context: /DDDispatch

            21:45:34,841 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 99) MSC000001: Failed to start service jboss.web.deployment.default-host./DDDispatch: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./DDDispatch: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context

                    at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)

                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_19]

                    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_19]

                    at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_19]

                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_19]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_19]

                    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_19]

                    at org.jboss.threads.JBossThread.run(JBossThread.java:122)

            Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context

                    at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161)

                    at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)

                    at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)

                    ... 7 more

             

            I dont see anything that points to the actual issue. Thanks.

            • 3. Re: App deployment failed - where are the error details?
              John Carver Newbie

              The issue was corrected by going through all deployment files and identifying a missing reference in jboss-deployment-structure.xml to a global module.

               

              JBoss deployment engine provide no help in the form of logs. This seemingly unpredicatable behavior of the logging system is making it rather hard to identify such issues.