Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects versions: 1.2.1
    • Fix versions: 1.2.3
    • Components: JBoss
    • Labels:
      None

      Description

      <plugin>
      <groupId>org.codehaus.cargo</groupId>
      <artifactId>cargo-maven2-plugin</artifactId>
      <version>1.2.1-SNAPSHOT</version> <!-- http://jira.codehaus.org/browse/CARGO-1086 -->
      <configuration>
      <container>
      <containerId>jboss71x</containerId>
      <artifactInstaller>
      <groupId>org.jboss.as</groupId>
      <artifactId>jboss-as-dist</artifactId>
      <version>7.1.0.Final</version>
      <type>zip</type>
      </artifactInstaller>
      </container>
      <deployer>
      <type>installed</type>
      <deployables>
      <deployable>
      <groupId>net.nowaker.myapp</groupId>
      <artifactId>myapp</artifactId>
      <type>war</type>
      <properties>
      <context>ROOT</context>
      </properties>
      <pingURL>http://localhost:8080/</pingURL>
      <pingTimeout>20000</pingTimeout>
      </deployable>
      </deployables>
      </deployer>
      </configuration>
      </plugin>
      

      cargo:run

      ...
      [INFO] [talledLocalContainer] 04:00:54,570 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.0.Final "Thunder" started in 1625ms - Started 134 of 205 services (70 services are passive or on-demand)
      ...
      

      cargo:deploy

      [INFO] [talledLocalContainer] 04:01:31,410 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.web.deployment.default-host./ROOT: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./ROOT: Failed to start service
      [INFO] [talledLocalContainer] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]
      [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]
      [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]
      [INFO] [talledLocalContainer] Caused by: java.lang.IllegalStateException: JBAS018038: Root contexts can not be deployed when the virtual host configuration has the welcome root enabled, disable it and redeploy
      [INFO] [talledLocalContainer] at org.jboss.as.web.deployment.WebContextInjector.inject(WebContextInjector.java:57)
      [INFO] [talledLocalContainer] at org.jboss.as.web.deployment.WebContextInjector.inject(WebContextInjector.java:38)
      [INFO] [talledLocalContainer] at org.jboss.msc.inject.CastingInjector.inject(CastingInjector.java:55) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      [INFO] [talledLocalContainer] at org.jboss.msc.service.ServiceControllerImpl.doInject(ServiceControllerImpl.java:1549) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      [INFO] [talledLocalContainer] at org.jboss.msc.service.ServiceControllerImpl.access$1900(ServiceControllerImpl.java:49) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      [INFO] [talledLocalContainer] at org.jboss.msc.service.ServiceControllerImpl$StartTask.performInjections(ServiceControllerImpl.java:1780) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      [INFO] [talledLocalContainer] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1741) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      [INFO] [talledLocalContainer] ... 3 more
      [INFO] [talledLocalContainer]
      [INFO] [talledLocalContainer] 04:01:31,629 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "ROOT.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./ROOT" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./ROOT: Failed to start service"}}
      [INFO] [talledLocalContainer] 04:01:31,711 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment ROOT.war in 81ms
      [INFO] [talledLocalContainer] 04:01:31,715 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
      [INFO] [talledLocalContainer] JBAS014777: Services which failed to start: service jboss.web.deployment.default-host./ROOT: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./ROOT: Failed to start service
      [INFO] [talledLocalContainer]
      [INFO] [talledLocalContainer] 04:01:31,718 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./ROOT" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./ROOT: Failed to start service"}}}}
      

      It doesn't look like Cargo problem, rather a distribution ZIP with root context redeployment disabled by default.
      Even if i'm right, maybe it's reasonable to handle such a situation in Cargo?

        Attachments

          Activity

            People

            • Assignee:
              savasalitokmen Savas Ali Tokmen (Inactive)
              Reporter:
              damiannowak Damian Nowak (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: