Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3900

WAR deployments not working on a Fabric child container

    XMLWordPrintable

Details

    • % %
    • Hide
      1. Create a Fabric
      2. Create a child container
      3. Add profile "feature-fabric-web" to the child container
      4. Connect to the child container
      5. Run install war:mvn:blah/blah/1.0
      6. Compare running list -t 0 | grep -i url on both root container and child container. It should look like this:
        JBossFuse:admin@child-web> list -t 0 | grep -i url
        [   2] [Active     ] [            ] [   80] OPS4J Pax Url - wrap: (2.4.0)
        JBossFuse:admin@root> list -t 0 | grep -i url
        [   2] [Active     ] [            ] [       ] [   80] OPS4J Pax Url - wrap: (2.4.0)
        [  32] [Active     ] [            ] [       ] [   30] OPS4J Pax Url - Commons (2.4.0)
        [ 246] [Active     ] [            ] [       ] [   30] OPS4J Pax Url - war (2.4.0)
        
      Show
      Create a Fabric Create a child container Add profile "feature-fabric-web" to the child container Connect to the child container Run install war:mvn:blah/blah/1.0 Compare running list -t 0 | grep -i url on both root container and child container. It should look like this: JBossFuse:admin@child-web> list -t 0 | grep -i url [ 2] [Active ] [ ] [ 80] OPS4J Pax Url - wrap: (2.4.0) JBossFuse:admin@root> list -t 0 | grep -i url [ 2] [Active ] [ ] [ ] [ 80] OPS4J Pax Url - wrap: (2.4.0) [ 32] [Active ] [ ] [ ] [ 30] OPS4J Pax Url - Commons (2.4.0) [ 246] [Active ] [ ] [ ] [ 30] OPS4J Pax Url - war (2.4.0)

    Description

      Deploying a WAR file on a Fabric child container with the profile feature-fabric-web doesn't work. The necessary bundles required for that are not installed, even though the feature-fabric-web profile contains the necessary features for that.

      This issue doesn't occur on a root container.

      After enabling TRACE logging on the child container I could see that the issue was this:

      2015-08-27 11:48:51,667 | TRACE | nload-2-thread-1 |
      AbstractDownloadTask             | 83 - io.fabric8.fabric-agent -
      1.2.0.redhat-133 | Downloading
      [war:file:/home/user/.m2/repository/com/example/demo-webapp/0.0.1-SNAPSHOT/demo-webapp-0.0.1-SNAPSHOT.war]
      
      2015-08-27 11:48:51,668 | DEBUG | nload-2-thread-1 |
      AbstractDownloadTask             | 83 - io.fabric8.fabric-agent -
      1.2.0.redhat-133 |   Could not download
      [war:file:/home/user/.m2/repository/com/example/demo-webapp/0.0.1-SNAPSHOT/demo-webapp-0.0.1-SNAPSHOT.war]
      
      2015-08-27 11:48:51,668 | TRACE | nload-2-thread-1 |
      AbstractDownloadTask             | 83 - io.fabric8.fabric-agent -
      1.2.0.redhat-133 |   Reason [java.net.MalformedURLException: Unknown
      protocol: war]
      
      2015-08-27 11:48:51,668 | DEBUG | nload-2-thread-1 |
      AbstractRetryableDownloadTask    | 83 - io.fabric8.fabric-agent -
      1.2.0.redhat-133 | Error downloading
      war:file:/home/user/.m2/repository/com/example/demo-webapp/0.0.1-SNAPSHOT/demo-webapp-0.0.1-SNAPSHOT.war:
      URL
      [war:file:/home/user/.m2/repository/com/example/demo-webapp/0.0.1-SNAPSHOT/demo-webapp-0.0.1-SNAPSHOT.war]
      could not be resolved.. Retrying in approx 52215 ms.
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-iweiss Ingo Weiss
              rhn-support-iweiss Ingo Weiss
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: