Hi Raymond,

I'm a little confused now :-)

A bundle org.apache.tuscany.sca.extensibility.equinox_1.4.0 is not created by 
the osgi build.
Do I have to adopt some configuration, so that this bundle is created ?

I only found tuscany-extensibility-equinox-1.4-SNAPSHOT.jar in 
tuscany\sca\modules\extensibility-equinox\target
I will that give a try.


Bye,
Daniel


> -----Ursprüngliche Nachricht-----
> Von: Raymond Feng [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 5. September 2008 17:58
> An: [EMAIL PROTECTED]
> Cc: tuscany-dev
> Betreff: Re: AW: Problems with bundle
> org.apache.tuscany.sca.osgi.runtime_1.4.0
> 
> Hi,
> 
> org.apache.tuscany.sca.extensibility.osgi_1.4.0 is exclusive with
> org.apache.tuscany.sca.extensibility.equinox_1.4.0. In Equinox, we
> should
> use org.apache.tuscany.sca.extensibility.equinox_1.4.0 only and
> configure it
> to be auto-started.
> 
> Sorry for the all the turbulences :-). We're working on the OSGi
> integration
> now to get the story straight. You are welcome to help!
> 
> 1) An OSGi SCA node launcher that bootstraps an embedded OSGi runtime
> such
> as Equinox, install Tuscany modules and 3rd party jars as OSGi bundles,
> and
> then run the SCA composite from the OSGi-enabled Tuscany.
> 
> 2) Tuscany modules and 3rd party jars deployed to Eclipse as OSGi
> bundles to
> be consumed by RCPs.
> 
> We'll create samples for both 1 and 2 and use them to drive the
> efforts.
> Some of the discussions are tracked at [1].
> 
> [1]
> http://cwiki.apache.org/confluence/display/TUSCANYWIKI/OSGi+Integration
> 
> Thanks,
> Raymond
> --------------------------------------------------
> From: <[EMAIL PROTECTED]>
> Sent: Friday, September 05, 2008 4:53 AM
> To: <[EMAIL PROTECTED]>
> Subject: AW: Problems with bundle
> org.apache.tuscany.sca.osgi.runtime_1.4.0
> 
> > Hi,
> >
> > this error occurs as soon as both bundles
> >
> > - org.apache.tuscany.sca.extensibility.osgi_1.4.0
> > - org.apache.tuscany.sca.osgi.runtime_1.4.0
> >
> > Are started. The one that is started last will produce the error.
> >
> > Bye,
> > Daniel
> >
> >
> >> -----Ursprüngliche Nachricht-----
> >> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >> Gesendet: Freitag, 5. September 2008 13:33
> >> An: [EMAIL PROTECTED]
> >> Betreff: AW: Problems with bundle
> >> org.apache.tuscany.sca.osgi.runtime_1.4.0
> >>
> >> Hi,
> >>
> >> rebuilding removed the IncompatibleClassChangeError. However, now I
> get
> >> the following:
> >>
> >> org.osgi.framework.BundleException: Exception in
> >> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start() of
> >> bundle org.apache.tuscany.sca.osgi.runtime.
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> >> or(BundleContextImpl.java:1018)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> >> ContextImpl.java:974)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> >> ost.java:346)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> >> undle.java:260)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> >> undle.java:252)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> >> t(FrameworkCommandProvider.java:260)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> >> va:39)
> >> at
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> >> rImpl.java:25)
> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> >> ecute(FrameworkCommandInterpreter.java:145)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> >> meworkConsole.java:291)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> >> workConsole.java:276)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> >> Console.java:218)
> >> at java.lang.Thread.run(Thread.java:595)
> >> Caused by: java.lang.IllegalStateException: The ServiceDiscoverer
> >> cannot be reset
> >> at
> >>
> org.apache.tuscany.sca.extensibility.ServiceDiscovery.setServiceDiscove
> >> rer(ServiceDiscovery.java:76)
> >> at
> >>
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> >> nyClassLoaders(OSGiBundleActivator.java:82)
> >> at
> >>
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> >> eActivator.java:55)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> >> ContextImpl.java:999)
> >> at java.security.AccessController.doPrivileged(Native Method)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> >> or(BundleContextImpl.java:993)
> >> ... 14 more
> >> Nested Exception:
> >> java.lang.IllegalStateException: The ServiceDiscoverer cannot be
> reset
> >> at
> >>
> org.apache.tuscany.sca.extensibility.ServiceDiscovery.setServiceDiscove
> >> rer(ServiceDiscovery.java:76)
> >> at
> >>
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> >> nyClassLoaders(OSGiBundleActivator.java:82)
> >> at
> >>
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> >> eActivator.java:55)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> >> ContextImpl.java:999)
> >> at java.security.AccessController.doPrivileged(Native Method)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> >> or(BundleContextImpl.java:993)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> >> ContextImpl.java:974)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> >> ost.java:346)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> >> undle.java:260)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> >> undle.java:252)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> >> t(FrameworkCommandProvider.java:260)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> >> va:39)
> >> at
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> >> rImpl.java:25)
> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> >> ecute(FrameworkCommandInterpreter.java:145)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> >> meworkConsole.java:291)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> >> workConsole.java:276)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> >> Console.java:218)
> >> at java.lang.Thread.run(Thread.java:595)
> >> Nested Exception:
> >> java.lang.IllegalStateException: The ServiceDiscoverer cannot be
> reset
> >> at
> >>
> org.apache.tuscany.sca.extensibility.ServiceDiscovery.setServiceDiscove
> >> rer(ServiceDiscovery.java:76)
> >> at
> >>
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> >> nyClassLoaders(OSGiBundleActivator.java:82)
> >> at
> >>
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> >> eActivator.java:55)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> >> ContextImpl.java:999)
> >> at java.security.AccessController.doPrivileged(Native Method)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> >> or(BundleContextImpl.java:993)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> >> ContextImpl.java:974)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> >> ost.java:346)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> >> undle.java:260)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> >> undle.java:252)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> >> t(FrameworkCommandProvider.java:260)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> >> va:39)
> >> at
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> >> rImpl.java:25)
> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> >> ecute(FrameworkCommandInterpreter.java:145)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> >> meworkConsole.java:291)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> >> workConsole.java:276)
> >> at
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> >> Console.java:218)
> >> at java.lang.Thread.run(Thread.java:595)
> >>
> >>
> >> Bye,
> >> Daniel
> >>
> >>
> >> > -----Ursprüngliche Nachricht-----
> >> > Von: Graham Charters [mailto:[EMAIL PROTECTED]
> >> > Gesendet: Donnerstag, 4. September 2008 17:32
> >> > An: [EMAIL PROTECTED]
> >> > Betreff: Re: Problems with bundle
> >> > org.apache.tuscany.sca.osgi.runtime_1.4.0
> >> >
> >> > Hi Daniel,
> >> >
> >> > I recently got an IncompatibleClassChangeError during activation
> and
> >> > for me it was resolved by rebuilding extensibility, extensibility-
> >> osgi
> >> > and osgi-runtime.  Maybe this will work for you?
> >> >
> >> > Regards, Graham.
> >> >
> >> > 2008/9/4  <[EMAIL PROTECTED]>:
> >> > > Hi all,
> >> > >
> >> > > I'm still (or again) trying to integrate Tuscany in SMILA. After
> >> svn
> >> > > update I built all osgi-bundles successfully.
> >> > >
> >> > > I do not use all Tuscany bundles in my project but only selected
> >> ones
> >> > > (the ones I require for the functionality I need and of course
> the
> >> > ones
> >> > > required by those). As far as I can tell all dependencies are
> >> > fulfilled
> >> > > as all bundles start successfully except the one below. I use
> >> eclipse
> >> > > 3.3 with equinox.
> >> > >
> >> > > If I start bundle org.apache.tuscany.sca.osgi.runtime_1.4.0 I
> get
> >> the
> >> > > following error:
> >> > >
> >> > > org.osgi.framework.BundleException: Exception in
> >> > > org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start()
> of
> >> > > bundle org.apache.tuscany.sca.osgi.runtime.
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> >> > o
> >> > > r(BundleContextImpl.java:1018)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> >> > C
> >> > > ontextImpl.java:974)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> >> > o
> >> > > st.java:346)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> >> > u
> >> > > ndle.java:260)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> >> > u
> >> > > ndle.java:252)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> >> > t
> >> > > (FrameworkCommandProvider.java:260)
> >> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> Method)
> >> > >        at
> >> > >
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> >> > v
> >> > > a:39)
> >> > >        at
> >> > >
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> >> > r
> >> > > Impl.java:25)
> >> > >        at java.lang.reflect.Method.invoke(Method.java:585)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> >> > e
> >> > > cute(FrameworkCommandInterpreter.java:145)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> >> > m
> >> > > eworkConsole.java:291)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> >> > w
> >> > > orkConsole.java:276)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> >> > C
> >> > > onsole.java:218)
> >> > >        at java.lang.Thread.run(Thread.java:595)
> >> > > Caused by: java.lang.IncompatibleClassChangeError
> >> > >        at
> >> > >
> >> >
> >>
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> >> > n
> >> > > yClassLoaders(OSGiBundleActivator.java:82)
> >> > >        at
> >> > >
> >> >
> >>
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> >> > e
> >> > > Activator.java:55)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> >> > C
> >> > > ontextImpl.java:999)
> >> > >        at java.security.AccessController.doPrivileged(Native
> >> Method)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> >> > o
> >> > > r(BundleContextImpl.java:993)
> >> > >        ... 14 more
> >> > > Nested Exception:
> >> > > java.lang.IncompatibleClassChangeError
> >> > >        at
> >> > >
> >> >
> >>
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> >> > n
> >> > > yClassLoaders(OSGiBundleActivator.java:82)
> >> > >        at
> >> > >
> >> >
> >>
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> >> > e
> >> > > Activator.java:55)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> >> > C
> >> > > ontextImpl.java:999)
> >> > >        at java.security.AccessController.doPrivileged(Native
> >> Method)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> >> > o
> >> > > r(BundleContextImpl.java:993)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> >> > C
> >> > > ontextImpl.java:974)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> >> > o
> >> > > st.java:346)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> >> > u
> >> > > ndle.java:260)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> >> > u
> >> > > ndle.java:252)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> >> > t
> >> > > (FrameworkCommandProvider.java:260)
> >> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> Method)
> >> > >        at
> >> > >
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> >> > v
> >> > > a:39)
> >> > >        at
> >> > >
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> >> > r
> >> > > Impl.java:25)
> >> > >        at java.lang.reflect.Method.invoke(Method.java:585)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> >> > e
> >> > > cute(FrameworkCommandInterpreter.java:145)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> >> > m
> >> > > eworkConsole.java:291)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> >> > w
> >> > > orkConsole.java:276)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> >> > C
> >> > > onsole.java:218)
> >> > >        at java.lang.Thread.run(Thread.java:595)
> >> > > Nested Exception:
> >> > > java.lang.IncompatibleClassChangeError
> >> > >        at
> >> > >
> >> >
> >>
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> >> > n
> >> > > yClassLoaders(OSGiBundleActivator.java:82)
> >> > >        at
> >> > >
> >> >
> >>
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> >> > e
> >> > > Activator.java:55)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> >> > C
> >> > > ontextImpl.java:999)
> >> > >        at java.security.AccessController.doPrivileged(Native
> >> Method)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> >> > o
> >> > > r(BundleContextImpl.java:993)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> >> > C
> >> > > ontextImpl.java:974)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> >> > o
> >> > > st.java:346)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> >> > u
> >> > > ndle.java:260)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> >> > u
> >> > > ndle.java:252)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> >> > t
> >> > > (FrameworkCommandProvider.java:260)
> >> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> Method)
> >> > >        at
> >> > >
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> >> > v
> >> > > a:39)
> >> > >        at
> >> > >
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> >> > r
> >> > > Impl.java:25)
> >> > >        at java.lang.reflect.Method.invoke(Method.java:585)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> >> > e
> >> > > cute(FrameworkCommandInterpreter.java:145)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> >> > m
> >> > > eworkConsole.java:291)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> >> > w
> >> > > orkConsole.java:276)
> >> > >        at
> >> > >
> >> >
> >>
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> >> > C
> >> > > onsole.java:218)
> >> > >        at java.lang.Thread.run(Thread.java:595)
> >> > >
> >> > >
> >> > > I also noticed that in the manifest of this bundle package
> >> > > "org.apache.tuscany.sca.osgi.runtime" is exported  as well as
> >> > imported.
> >> > > The latter seems to be unnecessary.
> >> > >
> >> > > Bye,
> >> > > Daniel
> >> > >

Reply via email to