Hi, I'm trying to run Tuscany in an OSGi environment. As a first step, I'm trying to launch Tuscany out of the box inside the OSGi framework. I've downloaded the 2.0-Beta3 release, and am running the following command from the modules directory:
java -jar osgi-3.5.0-v20090520.jar -clean -console -configuration ../features/configuration This isn't especially successful. Several of the bundles can't resolve, and I'm seeing errors like the following: osgi> Sep 3, 2011 12:45:11 PM org.apache.tuscany.sca.extensibility.equinox.EquinoxServiceDiscoverer$1 run WARNING: Unresolved resource META-INF/services/org.apache.tuscany.sca.assembly.builder.PolicyBuilder found in bundle: 187 org.apache.tuscany.sca.policy.wspolicy INSTALLED Sep 3, 2011 12:45:11 PM org.apache.tuscany.sca.extensibility.equinox.EquinoxServiceDiscoverer$1 run SEVERE: Bundle: org.apache.tuscany.sca.policy.wspolicy - The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.apache.neethi; version="0.0.0" .... WARNING: Unresolved resource META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor found in bundle: 187 org.apache.tuscany.sca.policy.wspolicy INSTALLED Sep 3, 2011 12:45:12 PM org.apache.tuscany.sca.extensibility.equinox.EquinoxServiceDiscoverer$1 run SEVERE: Bundle: org.apache.tuscany.sca.policy.wspolicy - The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.apache.neethi; version="0.0.0" The bundle at the root of the failures seems to be org.apache.neethi. The reason it can't start is the following: osgi> start 137 org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.apache.axiom.om.impl.llom.factory; version="0.0.0" I've had a look and the org.apache.axiom.om.impl.llom.factory package isn't actually exported from the axiom-impl-1.2.10.jar - and in fact I wouldn't expect it to be, since it's an implementation package. I've had a quick look through the JIRA and can't see any issues which seem obviously related. Does anyone have any suggestions for getting around this, or is launching Tuscany in this way the wrong thing to do? Thanks for your help, Holly
