Hi Simon, Thanks very much, that's brilliant! I'm impressed that you did a fix before I even found time to raise the JIRA. I'll pick up the nightly driver and see how I get on...
Holly On Tue, Sep 6, 2011 at 11:58 AM, Simon Laws <simonsl...@googlemail.com>wrote: > On Mon, Sep 5, 2011 at 9:54 AM, Simon Laws <simonsl...@googlemail.com> > wrote: > > On Sat, Sep 3, 2011 at 1:09 PM, Holly Cummins > > <holly.k.cumm...@googlemail.com> wrote: > >> 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 > >> > >> > >> > >> > > > > Hi Holly, > > > > Just tried and I see it too. If you raise a JIRA I'll take a look. > > > > Regards > > > > Simon > > > > -- > > Apache Tuscany committer: tuscany.apache.org > > Co-author of a book about Tuscany and SCA: tuscanyinaction.com > > > > Hi > > I went ahead and raised TUSCANY-3938 to cover this. I checked some > changes in that allow me to install the distribution modules in OSGi. > I added a simple sample contribution that can be installed and started > (see samples/learning-more/contribution-osgi). The sample is only very > simple so any further configuration of the composite could uncover > further issues. I'm still seeing some errors reported relating to > Abdera. So still some things to fix. > > Hope this helps. > > Simon > > -- > Apache Tuscany committer: tuscany.apache.org > Co-author of a book about Tuscany and SCA: tuscanyinaction.com >