diff options
Diffstat (limited to 'branches/sca-equinox/samples/calculator-osgi/src/main/java/calculator/CalculatorActivator.java')
-rw-r--r-- | branches/sca-equinox/samples/calculator-osgi/src/main/java/calculator/CalculatorActivator.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/branches/sca-equinox/samples/calculator-osgi/src/main/java/calculator/CalculatorActivator.java b/branches/sca-equinox/samples/calculator-osgi/src/main/java/calculator/CalculatorActivator.java index 384ae99fff..4408568629 100644 --- a/branches/sca-equinox/samples/calculator-osgi/src/main/java/calculator/CalculatorActivator.java +++ b/branches/sca-equinox/samples/calculator-osgi/src/main/java/calculator/CalculatorActivator.java @@ -33,11 +33,15 @@ public class CalculatorActivator implements BundleActivator { private Node node; public void start(BundleContext context) throws Exception { - NodeFactory factory = NodeFactory.newInstance(); - String url = ContributionLocationHelper.getContributionLocation(getClass()); - Contribution contrib = new Contribution("c1", url); - node = factory.createNode("Calculator.composite", contrib); - node.start(); + try { + NodeFactory factory = NodeFactory.newInstance(); + String url = ContributionLocationHelper.getContributionLocation(getClass()); + Contribution contrib = new Contribution("c1", url); + node = factory.createNode("Calculator.composite", contrib); + node.start(); + } catch (Throwable e) { + e.printStackTrace(); + } } public void stop(BundleContext context) throws Exception { |