You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2016/02/01 18:46:47 UTC

[44/50] brooklyn-library git commit: Fix KarafContainer on ec2

Fix KarafContainer on ec2

- Removes getRequiredOpenPorts adding getConfig(RMI_PORT),
  because causes ClassCastException in JcloudsLocation.
  It was adding a PortRange to a Collection<Integer>.

Project: http://git-wip-us.apache.org/repos/asf/brooklyn-library/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-library/commit/c5fc74be
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-library/tree/c5fc74be
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-library/diff/c5fc74be

Branch: refs/heads/0.4.0
Commit: c5fc74be4ec8c65bba2695b3bd9da983d7c7b435
Parents: 12b435f
Author: Aled Sage <al...@gmail.com>
Authored: Mon Nov 12 13:12:22 2012 +0000
Committer: Aled Sage <al...@gmail.com>
Committed: Mon Nov 12 13:12:22 2012 +0000

----------------------------------------------------------------------
 .../java/brooklyn/entity/osgi/karaf/KarafContainer.groovy     | 7 -------
 1 file changed, 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/c5fc74be/software/osgi/src/main/java/brooklyn/entity/osgi/karaf/KarafContainer.groovy
----------------------------------------------------------------------
diff --git a/software/osgi/src/main/java/brooklyn/entity/osgi/karaf/KarafContainer.groovy b/software/osgi/src/main/java/brooklyn/entity/osgi/karaf/KarafContainer.groovy
index 07e8987..c4e35bf 100644
--- a/software/osgi/src/main/java/brooklyn/entity/osgi/karaf/KarafContainer.groovy
+++ b/software/osgi/src/main/java/brooklyn/entity/osgi/karaf/KarafContainer.groovy
@@ -114,13 +114,6 @@ public class KarafContainer extends SoftwareProcessEntity implements UsesJava, U
     }
 
     @Override
-    protected Collection<Integer> getRequiredOpenPorts() {
-        Collection<Integer> result = super.getRequiredOpenPorts()
-        result.add(getConfig(RMI_PORT.configKey))
-        return result
-    }
-
-    @Override
     public void postStart() {
 		super.postStart()
         deployConfiguration(getConfig(NAMED_PROPERTY_FILES))