Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-855

Unable to deploy a WAR to a Fabric profile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0
    • 7.1.0
    • None
    • None

    Description

      Fabric does not seem to be able to deploy a WAR to container when provisioned in a profile. The camel-web archetype can be used as example. When this project is deployed to a profile the resulting maven URL is created:

      war:mvn:com.redhat.example/camel-web/1.0.0-SNAPSHOT

      However I believe this should be:

      war:mvn:com.redhat.example/camel-web/1.0.0-SNAPSHOT/war

      as documented at http://team.ops4j.org/wiki/display/paxurl/War+Protocol

      The resulting error is as follows:

      2013-01-21 17:00:46,215 | ERROR | agent-1-thread-1 | DeploymentAgent                  | e.fabric.agent.DeploymentAgent$1  241 | 67 - org.fusesource.fabric.fabric-agent - 7.1.0.fuse-047 | Unable to update agent
      org.fusesource.fabric.agent.utils.MultiException: Error while downloading bundles
      	at org.fusesource.fabric.agent.DeploymentAgent.downloadBundles(DeploymentAgent.java:1023)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	at org.fusesource.fabric.agent.DeploymentAgent.updateDeployment(DeploymentAgent.java:552)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	at org.fusesource.fabric.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:428)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	at org.fusesource.fabric.agent.DeploymentAgent$1.run(DeploymentAgent.java:238)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[:1.6.0_37]
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_37]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_37]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_37]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_37]
      	at java.lang.Thread.run(Thread.java:680)[:1.6.0_37]
      Caused by: java.io.IOException: Error downloading mvn:com.redhat.example/camel-web/1.0.0-SNAPSHOT
      	at org.fusesource.fabric.agent.download.AbstractDownloadTask.initIOException(AbstractDownloadTask.java:108)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	at org.fusesource.fabric.agent.download.AbstractDownloadTask.run(AbstractDownloadTask.java:88)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	... 6 more
      Caused by: java.io.IOException: URL [mvn:com.redhat.example/camel-web/1.0.0-SNAPSHOT] could not be resolved.
      	at org.fusesource.fabric.agent.download.MavenDownloadTask.download(MavenDownloadTask.java:123)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	at org.fusesource.fabric.agent.download.AbstractDownloadTask.run(AbstractDownloadTask.java:77)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	... 6 more
      2013-01-21 17:00:52,873 | ERROR | agent-1-thread-1 | DeploymentAgent                  | e.fabric.agent.DeploymentAgent$1  241 | 67 - org.fusesource.fabric.fabric-agent - 7.1.0.fuse-047 | Unable to update agent
      org.fusesource.fabric.agent.utils.MultiException: Error while downloading bundles
      	at org.fusesource.fabric.agent.DeploymentAgent.downloadBundles(DeploymentAgent.java:1023)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	at org.fusesource.fabric.agent.DeploymentAgent.updateDeployment(DeploymentAgent.java:552)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	at org.fusesource.fabric.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:428)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	at org.fusesource.fabric.agent.DeploymentAgent$1.run(DeploymentAgent.java:238)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[:1.6.0_37]
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_37]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_37]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_37]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_37]
      	at java.lang.Thread.run(Thread.java:680)[:1.6.0_37]
      Caused by: java.io.IOException: Error downloading mvn:com.redhat.example/camel-web/1.0.0-SNAPSHOT
      	at org.fusesource.fabric.agent.download.AbstractDownloadTask.initIOException(AbstractDownloadTask.java:108)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	at org.fusesource.fabric.agent.download.AbstractDownloadTask.run(AbstractDownloadTask.java:88)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	... 6 more
      Caused by: java.io.IOException: URL [mvn:com.redhat.example/camel-web/1.0.0-SNAPSHOT] could not be resolved.
      	at org.fusesource.fabric.agent.download.MavenDownloadTask.download(MavenDownloadTask.java:123)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	at org.fusesource.fabric.agent.download.AbstractDownloadTask.run(AbstractDownloadTask.java:77)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]
      	... 6 more
      

      Trying to use just the mvn URL "war:mvn:com.redhat.example/camel-web/1.0.0-SNAPSHOT" fails however "war:mvn:com.redhat.example/camel-web/1.0.0-SNAPSHOT/war" is successful

      Attachments

        Activity

          People

            jastrachan_jira James Strachan (Inactive)
            rhn-support-jsherman Jason Sherman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: