diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-29 06:28:04 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-29 06:28:04 +0000 |
commit | e32aab48be3707c08f1412826b9c4c68d9050fb5 (patch) | |
tree | 88ca14c074d8b8ac3f4313cf5ea51f57053bef94 | |
parent | 1ccf1ff24ffbc58b07ae907d522bae601ae37b4b (diff) |
Added a log, and start bundle to help debugging.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@699996 13f79535-47bb-0310-9956-ffa450edef68
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); } |