diff options
Diffstat (limited to '')
2 files changed, 7 insertions, 3 deletions
diff --git a/branches/sca-equinox/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java b/branches/sca-equinox/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java index 8ec80b5eaf..8c07caf0e4 100644 --- a/branches/sca-equinox/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java +++ b/branches/sca-equinox/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java @@ -45,6 +45,7 @@ import org.apache.tuscany.sca.extensibility.ServiceDeclaration; import org.apache.tuscany.sca.extensibility.ServiceDiscoverer; import org.osgi.framework.Bundle; import org.osgi.framework.BundleContext; +import org.osgi.framework.BundleException; /** * A ServiceDiscoverer that find META-INF/services/... in installed bundles @@ -220,6 +221,11 @@ public class EquinoxServiceDiscoverer implements ServiceDiscoverer { URL entry = bundle.getEntry(serviceName); if (entry != null) { logger.warning("Unresolved resource " + serviceName + " found in " + toString(bundle)); + try { + bundle.start(); + } catch (BundleException e) { + throw new IllegalStateException(e); + } // urls = Collections.enumeration(Arrays.asList(entry)); } } diff --git a/branches/sca-equinox/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java b/branches/sca-equinox/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java index 96cde75779..a88f414c0f 100644 --- a/branches/sca-equinox/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java +++ b/branches/sca-equinox/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java @@ -246,9 +246,6 @@ class EquinoxHost { if (bundleName.contains("org.eclipse.jdt.junit")) { continue; } - if (bundleName.contains("host.openejb")) { - continue; - } Bundle bundle = allBundles.get(bundleName); if (bundle == null) { long installStart = currentTimeMillis(); @@ -256,6 +253,7 @@ class EquinoxHost { if (logger.isLoggable(Level.FINE)) { logger.fine("Bundle installed in " + (currentTimeMillis() - installStart) + " ms: " + string(bundle, false)); } + logger.info("Bundle installed in " + (currentTimeMillis() - installStart) + " ms: " + string(bundle, false)); allBundles.put(bundleName, bundle); installedBundles.add(bundle); } |