You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Da...@empolis.com on 2008/09/04 16:40:42 UTC
Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
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.startActivato
r(BundleContextImpl.java:1018)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleC
ontextImpl.java:974)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHo
st.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBu
ndle.java:260)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBu
ndle.java:252)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start
(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.exe
cute(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fram
eworkConsole.java:291)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Framew
orkConsole.java:276)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkC
onsole.java:218)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IncompatibleClassChangeError
at
org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTuscan
yClassLoaders(OSGiBundleActivator.java:82)
at
org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundle
Activator.java:55)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleC
ontextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivato
r(BundleContextImpl.java:993)
... 14 more
Nested Exception:
java.lang.IncompatibleClassChangeError
at
org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTuscan
yClassLoaders(OSGiBundleActivator.java:82)
at
org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundle
Activator.java:55)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleC
ontextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivato
r(BundleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleC
ontextImpl.java:974)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHo
st.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBu
ndle.java:260)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBu
ndle.java:252)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start
(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.exe
cute(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fram
eworkConsole.java:291)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Framew
orkConsole.java:276)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkC
onsole.java:218)
at java.lang.Thread.run(Thread.java:595)
Nested Exception:
java.lang.IncompatibleClassChangeError
at
org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTuscan
yClassLoaders(OSGiBundleActivator.java:82)
at
org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundle
Activator.java:55)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleC
ontextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivato
r(BundleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleC
ontextImpl.java:974)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHo
st.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBu
ndle.java:260)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBu
ndle.java:252)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start
(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.exe
cute(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fram
eworkConsole.java:291)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Framew
orkConsole.java:276)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkC
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
AW: AW: AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Da...@empolis.com.
Hi all,
I just wanted to let you know that I finally managed to get a SCDomain
started and my Service to execute.
Due to all debugging I forgot to get a ServiceReference and call a
method.
That's because I expected the Component references to be created at
startup time, but they are initialized during the first call.
Sorry for the confusion...
Bye,
Daniel
AW: AW: AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Da...@empolis.com.
Hi all,
I don't want to bother you guys with more Tuscany-OSGi related questions
as I know all of this is in development, but please allow me one more
:-)
In the meantime I managed to get a SCADomain started in my Equinox
runtime and load my Contribution. I don't use all Tuscany bundles but
only selected ones (mostly because some 3rd party bundles are already
available).
I have 3 components, each using implementation.osgi and providing a
Service interface. Component A has references to Components B and C. The
underlying DeclarativeServices are all started. I also think that the
SCA Services are all started (I only get a log message about this on
level FINE) and I get no warnings or exceptions.
The problem is, that the references to B and C are not initialized in A.
The setters are never called. It seems that the SCA Services are not
found. I debugged a lot and could not find anything unusual. Everything
seems to be setup correctly.
Does anyone of you have any idea what could be wrong ? Or what classes
to debug more thoroughly?
As I don't get warnings or exceptions I guess that something is missing
which does not directly lead to an Exception, like some internal list
that should contain elements but doesn't.
Thanks for your help!
Bye,
Daniel
AW: AW: AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Da...@empolis.com.
Thanks Raymond!
If there is anything I can help with (e.g. testing) please let me know.
Bye,
Daniel
> -----Ursprüngliche Nachricht-----
> Von: Raymond Feng [mailto:enjoyjava@gmail.com]
> Gesendet: Montag, 8. September 2008 18:23
> An: user@tuscany.apache.org
> Cc: dev@tuscany.apache.org
> Betreff: Re: AW: AW: Problems with bundle
> org.apache.tuscany.sca.osgi.runtime_1.4.0
>
> Hi, Daniel.
>
> There are a few different approaches being experimented in the OSGi
> area.
> That creates some confusions. We're trying to get the story simple and
> straight using Equinox as the OSGi runtime. The main idea is to leave
> 3rd
> party jars as-is and wrap them into a virtual bundle using the
> Bundle-ClassPath with external entries. Please bear with us for a few
> days
> as we go through the classloading funs :-). We'll try to update the ML
> as we
> go.
>
> Thanks,
> Raymond
> --------------------------------------------------
> From: <Da...@empolis.com>
> Sent: Monday, September 08, 2008 8:32 AM
> To: <us...@tuscany.apache.org>
> Cc: <de...@tuscany.apache.org>
> Subject: AW: AW: Problems with bundle
> org.apache.tuscany.sca.osgi.runtime_1.4.0
>
> > Hi all,
> >
> > I did some more experiments:
> >
> > - I replaced bundle
> > org.apache.tuscany.sca.extensibility.osgi_1.4.0.SNAPSHOT.jar with
> > tuscany-extensibility-equinox-1.4-SNAPSHOT.jar and
> > tuscany-node-launcher-equinox-1.4-SNAPSHOT.jar
> > - I adopted the manifest.mf of
> > org.apache.tuscany.sca.osgi.runtime_1.4.0.SNAPSHOT.jar and replaced
> all
> > imports/exports of *.extensibility.osgi with *.extensibility.equinox
> >
> > So for usage in equinox the bundles seem not to be usable out-of-the-
> box.
> >
> > With these changes I get some steps further. Now an exception is
> thrown
> > when the Contribution Services is created (see below). I guess that
> no
> > service xml is found for the XMLInputFactory, though a xerces bundle
> is
> > installed.
> > I know I had this problem once before and I think it was solved by
> calling
> >
> Thread.currentThread().setContextClassLoader(OSGiRuntime.getRuntime(tru
> e).getContextClassLoader());
> > just before creating the SCADomain. However, due to the jar and
> manifest
> > tweaking OSGiRuntime is no longer available and cannot be called.
> >
> >
> > Starting ScaDomainActivator ... org.osgi.framework.BundleException:
> > Exception in
> >
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start()
> of
> > bundle org.eclipse.eilf.connectivity.framework.sca.
> > 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: javax.xml.stream.FactoryConfigurationError: Provider
> > com.bea.xml.stream.MXParserFactory not found
> > at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
> > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> > at
> javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.ja
> va:176)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.ja
> va:175)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionServi
> ce(RuntimeBuilder.java:174)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootS
> trapper.java:156)
> > at
> >
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(Embed
> dedSCADomain.java:80)
> > at
> >
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDoma
> inByContribution(ScaDomainActivator.java:96)
> > at
> >
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(Sc
> aDomainActivator.java:57)
> > 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:
> > javax.xml.stream.FactoryConfigurationError: Provider
> > com.bea.xml.stream.MXParserFactory not found
> > at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
> > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> > at
> javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.ja
> va:176)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.ja
> va:175)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionServi
> ce(RuntimeBuilder.java:174)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootS
> trapper.java:156)
> > at
> >
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(Embed
> dedSCADomain.java:80)
> > at
> >
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDoma
> inByContribution(ScaDomainActivator.java:96)
> > at
> >
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(Sc
> aDomainActivator.java:57)
> > 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.ClassNotFoundException: com.bea.xml.stream.MXParserFactory
> > at java.lang.ClassLoader.findClass(ClassLoader.java:358)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > at
> >
> org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(Conte
> xtFinder.java:124)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> > at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:68)
> > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> > at
> javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.ja
> va:176)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.ja
> va:175)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionServi
> ce(RuntimeBuilder.java:174)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootS
> trapper.java:156)
> > at
> >
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(Embed
> dedSCADomain.java:80)
> > at
> >
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDoma
> inByContribution(ScaDomainActivator.java:96)
> > at
> >
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(Sc
> aDomainActivator.java:57)
> > 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:
> > javax.xml.stream.FactoryConfigurationError: Provider
> > com.bea.xml.stream.MXParserFactory not found
> > at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
> > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> > at
> javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.ja
> va:176)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.ja
> va:175)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionServi
> ce(RuntimeBuilder.java:174)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootS
> trapper.java:156)
> > at
> >
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(Embed
> dedSCADomain.java:80)
> > at
> >
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDoma
> inByContribution(ScaDomainActivator.java:96)
> > at
> >
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(Sc
> aDomainActivator.java:57)
> > 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.ClassNotFoundException: com.bea.xml.stream.MXParserFactory
> > at java.lang.ClassLoader.findClass(ClassLoader.java:358)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > at
> >
> org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(Conte
> xtFinder.java:124)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> > at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:68)
> > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> > at
> javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.ja
> va:176)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.ja
> va:175)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionServi
> ce(RuntimeBuilder.java:174)
> > at
> >
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootS
> trapper.java:156)
> > at
> >
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(Embed
> dedSCADomain.java:80)
> > at
> >
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDoma
> inByContribution(ScaDomainActivator.java:96)
> > at
> >
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(Sc
> aDomainActivator.java:57)
> > 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: Daniel.Stucky@empolis.com [mailto:Daniel.Stucky@empolis.com]
> >> Gesendet: Montag, 8. September 2008 13:56
> >> An: user@tuscany.apache.org
> >> Cc: dev@tuscany.apache.org
> >> Betreff: AW: AW: Problems with bundle
> >> org.apache.tuscany.sca.osgi.runtime_1.4.0
> >>
> >> 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.
> >>
> >>
Re: AW: AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Raymond Feng <en...@gmail.com>.
Hi, Daniel.
There are a few different approaches being experimented in the OSGi area.
That creates some confusions. We're trying to get the story simple and
straight using Equinox as the OSGi runtime. The main idea is to leave 3rd
party jars as-is and wrap them into a virtual bundle using the
Bundle-ClassPath with external entries. Please bear with us for a few days
as we go through the classloading funs :-). We'll try to update the ML as we
go.
Thanks,
Raymond
--------------------------------------------------
From: <Da...@empolis.com>
Sent: Monday, September 08, 2008 8:32 AM
To: <us...@tuscany.apache.org>
Cc: <de...@tuscany.apache.org>
Subject: AW: AW: Problems with bundle
org.apache.tuscany.sca.osgi.runtime_1.4.0
> Hi all,
>
> I did some more experiments:
>
> - I replaced bundle
> org.apache.tuscany.sca.extensibility.osgi_1.4.0.SNAPSHOT.jar with
> tuscany-extensibility-equinox-1.4-SNAPSHOT.jar and
> tuscany-node-launcher-equinox-1.4-SNAPSHOT.jar
> - I adopted the manifest.mf of
> org.apache.tuscany.sca.osgi.runtime_1.4.0.SNAPSHOT.jar and replaced all
> imports/exports of *.extensibility.osgi with *.extensibility.equinox
>
> So for usage in equinox the bundles seem not to be usable out-of-the-box.
>
> With these changes I get some steps further. Now an exception is thrown
> when the Contribution Services is created (see below). I guess that no
> service xml is found for the XMLInputFactory, though a xerces bundle is
> installed.
> I know I had this problem once before and I think it was solved by calling
> Thread.currentThread().setContextClassLoader(OSGiRuntime.getRuntime(true).getContextClassLoader());
> just before creating the SCADomain. However, due to the jar and manifest
> tweaking OSGiRuntime is no longer available and cannot be called.
>
>
> Starting ScaDomainActivator ... org.osgi.framework.BundleException:
> Exception in
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start() of
> bundle org.eclipse.eilf.connectivity.framework.sca.
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1018)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: javax.xml.stream.FactoryConfigurationError: Provider
> com.bea.xml.stream.MXParserFactory not found
> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
> at
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
> ... 14 more
> Nested Exception:
> javax.xml.stream.FactoryConfigurationError: Provider
> com.bea.xml.stream.MXParserFactory not found
> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
> at
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
> at java.lang.Thread.run(Thread.java:595)
> Nested Exception:
> java.lang.ClassNotFoundException: com.bea.xml.stream.MXParserFactory
> at java.lang.ClassLoader.findClass(ClassLoader.java:358)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at
> org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:124)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:68)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
> at
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
> at java.lang.Thread.run(Thread.java:595)
> Nested Exception:
> javax.xml.stream.FactoryConfigurationError: Provider
> com.bea.xml.stream.MXParserFactory not found
> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
> at
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
> at java.lang.Thread.run(Thread.java:595)
> Nested Exception:
> java.lang.ClassNotFoundException: com.bea.xml.stream.MXParserFactory
> at java.lang.ClassLoader.findClass(ClassLoader.java:358)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at
> org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:124)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:68)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
> at
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
> at java.lang.Thread.run(Thread.java:595)
>
>
> Bye,
> Daniel
>
>
>> -----Ursprüngliche Nachricht-----
>> Von: Daniel.Stucky@empolis.com [mailto:Daniel.Stucky@empolis.com]
>> Gesendet: Montag, 8. September 2008 13:56
>> An: user@tuscany.apache.org
>> Cc: dev@tuscany.apache.org
>> Betreff: AW: AW: Problems with bundle
>> org.apache.tuscany.sca.osgi.runtime_1.4.0
>>
>> 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.
>>
>>
Re: AW: AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Raymond Feng <en...@gmail.com>.
Hi, Daniel.
There are a few different approaches being experimented in the OSGi area.
That creates some confusions. We're trying to get the story simple and
straight using Equinox as the OSGi runtime. The main idea is to leave 3rd
party jars as-is and wrap them into a virtual bundle using the
Bundle-ClassPath with external entries. Please bear with us for a few days
as we go through the classloading funs :-). We'll try to update the ML as we
go.
Thanks,
Raymond
--------------------------------------------------
From: <Da...@empolis.com>
Sent: Monday, September 08, 2008 8:32 AM
To: <us...@tuscany.apache.org>
Cc: <de...@tuscany.apache.org>
Subject: AW: AW: Problems with bundle
org.apache.tuscany.sca.osgi.runtime_1.4.0
> Hi all,
>
> I did some more experiments:
>
> - I replaced bundle
> org.apache.tuscany.sca.extensibility.osgi_1.4.0.SNAPSHOT.jar with
> tuscany-extensibility-equinox-1.4-SNAPSHOT.jar and
> tuscany-node-launcher-equinox-1.4-SNAPSHOT.jar
> - I adopted the manifest.mf of
> org.apache.tuscany.sca.osgi.runtime_1.4.0.SNAPSHOT.jar and replaced all
> imports/exports of *.extensibility.osgi with *.extensibility.equinox
>
> So for usage in equinox the bundles seem not to be usable out-of-the-box.
>
> With these changes I get some steps further. Now an exception is thrown
> when the Contribution Services is created (see below). I guess that no
> service xml is found for the XMLInputFactory, though a xerces bundle is
> installed.
> I know I had this problem once before and I think it was solved by calling
> Thread.currentThread().setContextClassLoader(OSGiRuntime.getRuntime(true).getContextClassLoader());
> just before creating the SCADomain. However, due to the jar and manifest
> tweaking OSGiRuntime is no longer available and cannot be called.
>
>
> Starting ScaDomainActivator ... org.osgi.framework.BundleException:
> Exception in
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start() of
> bundle org.eclipse.eilf.connectivity.framework.sca.
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1018)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: javax.xml.stream.FactoryConfigurationError: Provider
> com.bea.xml.stream.MXParserFactory not found
> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
> at
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
> ... 14 more
> Nested Exception:
> javax.xml.stream.FactoryConfigurationError: Provider
> com.bea.xml.stream.MXParserFactory not found
> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
> at
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
> at java.lang.Thread.run(Thread.java:595)
> Nested Exception:
> java.lang.ClassNotFoundException: com.bea.xml.stream.MXParserFactory
> at java.lang.ClassLoader.findClass(ClassLoader.java:358)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at
> org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:124)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:68)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
> at
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
> at java.lang.Thread.run(Thread.java:595)
> Nested Exception:
> javax.xml.stream.FactoryConfigurationError: Provider
> com.bea.xml.stream.MXParserFactory not found
> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
> at
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
> at java.lang.Thread.run(Thread.java:595)
> Nested Exception:
> java.lang.ClassNotFoundException: com.bea.xml.stream.MXParserFactory
> at java.lang.ClassLoader.findClass(ClassLoader.java:358)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at
> org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:124)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:68)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
> at
> org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
> at
> org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
> at
> org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
> at java.lang.Thread.run(Thread.java:595)
>
>
> Bye,
> Daniel
>
>
>> -----Ursprüngliche Nachricht-----
>> Von: Daniel.Stucky@empolis.com [mailto:Daniel.Stucky@empolis.com]
>> Gesendet: Montag, 8. September 2008 13:56
>> An: user@tuscany.apache.org
>> Cc: dev@tuscany.apache.org
>> Betreff: AW: AW: Problems with bundle
>> org.apache.tuscany.sca.osgi.runtime_1.4.0
>>
>> 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.
>>
>>
AW: AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Da...@empolis.com.
Hi all,
I did some more experiments:
- I replaced bundle org.apache.tuscany.sca.extensibility.osgi_1.4.0.SNAPSHOT.jar with tuscany-extensibility-equinox-1.4-SNAPSHOT.jar and tuscany-node-launcher-equinox-1.4-SNAPSHOT.jar
- I adopted the manifest.mf of org.apache.tuscany.sca.osgi.runtime_1.4.0.SNAPSHOT.jar and replaced all imports/exports of *.extensibility.osgi with *.extensibility.equinox
So for usage in equinox the bundles seem not to be usable out-of-the-box.
With these changes I get some steps further. Now an exception is thrown when the Contribution Services is created (see below). I guess that no service xml is found for the XMLInputFactory, though a xerces bundle is installed.
I know I had this problem once before and I think it was solved by calling
Thread.currentThread().setContextClassLoader(OSGiRuntime.getRuntime(true).getContextClassLoader());
just before creating the SCADomain. However, due to the jar and manifest tweaking OSGiRuntime is no longer available and cannot be called.
Starting ScaDomainActivator ... org.osgi.framework.BundleException: Exception in org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start() of bundle org.eclipse.eilf.connectivity.framework.sca.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1018)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
at org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
at org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
... 14 more
Nested Exception:
javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
at org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
at org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
at java.lang.Thread.run(Thread.java:595)
Nested Exception:
java.lang.ClassNotFoundException: com.bea.xml.stream.MXParserFactory
at java.lang.ClassLoader.findClass(ClassLoader.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:124)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:68)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
at org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
at org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
at java.lang.Thread.run(Thread.java:595)
Nested Exception:
javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
at org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
at org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
at java.lang.Thread.run(Thread.java:595)
Nested Exception:
java.lang.ClassNotFoundException: com.bea.xml.stream.MXParserFactory
at java.lang.ClassLoader.findClass(ClassLoader.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:124)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:68)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
at org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
at org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
at java.lang.Thread.run(Thread.java:595)
Bye,
Daniel
> -----Ursprüngliche Nachricht-----
> Von: Daniel.Stucky@empolis.com [mailto:Daniel.Stucky@empolis.com]
> Gesendet: Montag, 8. September 2008 13:56
> An: user@tuscany.apache.org
> Cc: dev@tuscany.apache.org
> Betreff: AW: AW: Problems with bundle
> org.apache.tuscany.sca.osgi.runtime_1.4.0
>
> 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.
>
>
AW: AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Da...@empolis.com.
Hi all,
I did some more experiments:
- I replaced bundle org.apache.tuscany.sca.extensibility.osgi_1.4.0.SNAPSHOT.jar with tuscany-extensibility-equinox-1.4-SNAPSHOT.jar and tuscany-node-launcher-equinox-1.4-SNAPSHOT.jar
- I adopted the manifest.mf of org.apache.tuscany.sca.osgi.runtime_1.4.0.SNAPSHOT.jar and replaced all imports/exports of *.extensibility.osgi with *.extensibility.equinox
So for usage in equinox the bundles seem not to be usable out-of-the-box.
With these changes I get some steps further. Now an exception is thrown when the Contribution Services is created (see below). I guess that no service xml is found for the XMLInputFactory, though a xerces bundle is installed.
I know I had this problem once before and I think it was solved by calling
Thread.currentThread().setContextClassLoader(OSGiRuntime.getRuntime(true).getContextClassLoader());
just before creating the SCADomain. However, due to the jar and manifest tweaking OSGiRuntime is no longer available and cannot be called.
Starting ScaDomainActivator ... org.osgi.framework.BundleException: Exception in org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start() of bundle org.eclipse.eilf.connectivity.framework.sca.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1018)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
at org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
at org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
... 14 more
Nested Exception:
javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
at org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
at org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
at java.lang.Thread.run(Thread.java:595)
Nested Exception:
java.lang.ClassNotFoundException: com.bea.xml.stream.MXParserFactory
at java.lang.ClassLoader.findClass(ClassLoader.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:124)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:68)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
at org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
at org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
at java.lang.Thread.run(Thread.java:595)
Nested Exception:
javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
at org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
at org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
at java.lang.Thread.run(Thread.java:595)
Nested Exception:
java.lang.ClassNotFoundException: com.bea.xml.stream.MXParserFactory
at java.lang.ClassLoader.findClass(ClassLoader.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:124)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:68)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:176)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder$1.run(RuntimeBuilder.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tuscany.sca.node.impl.RuntimeBuilder.createContributionService(RuntimeBuilder.java:174)
at org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootStrapper.java:156)
at org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(EmbeddedSCADomain.java:80)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomainByContribution(ScaDomainActivator.java:96)
at org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(ScaDomainActivator.java:57)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
at java.lang.Thread.run(Thread.java:595)
Bye,
Daniel
> -----Ursprüngliche Nachricht-----
> Von: Daniel.Stucky@empolis.com [mailto:Daniel.Stucky@empolis.com]
> Gesendet: Montag, 8. September 2008 13:56
> An: user@tuscany.apache.org
> Cc: dev@tuscany.apache.org
> Betreff: AW: AW: Problems with bundle
> org.apache.tuscany.sca.osgi.runtime_1.4.0
>
> 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.
>
>
AW: AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Da...@empolis.com.
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:enjoyjava@gmail.com]
> Gesendet: Freitag, 5. September 2008 17:58
> An: user@tuscany.apache.org
> 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: <Da...@empolis.com>
> Sent: Friday, September 05, 2008 4:53 AM
> To: <us...@tuscany.apache.org>
> 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: Daniel.Stucky@empolis.com [mailto:Daniel.Stucky@empolis.com]
> >> Gesendet: Freitag, 5. September 2008 13:33
> >> An: user@tuscany.apache.org
> >> 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:gcharters@googlemail.com]
> >> > Gesendet: Donnerstag, 4. September 2008 17:32
> >> > An: user@tuscany.apache.org
> >> > 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 <Da...@empolis.com>:
> >> > > 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
> >> > >
AW: AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Da...@empolis.com.
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:enjoyjava@gmail.com]
> Gesendet: Freitag, 5. September 2008 17:58
> An: user@tuscany.apache.org
> 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: <Da...@empolis.com>
> Sent: Friday, September 05, 2008 4:53 AM
> To: <us...@tuscany.apache.org>
> 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: Daniel.Stucky@empolis.com [mailto:Daniel.Stucky@empolis.com]
> >> Gesendet: Freitag, 5. September 2008 13:33
> >> An: user@tuscany.apache.org
> >> 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:gcharters@googlemail.com]
> >> > Gesendet: Donnerstag, 4. September 2008 17:32
> >> > An: user@tuscany.apache.org
> >> > 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 <Da...@empolis.com>:
> >> > > 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
> >> > >
Re: AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Raymond Feng <en...@gmail.com>.
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: <Da...@empolis.com>
Sent: Friday, September 05, 2008 4:53 AM
To: <us...@tuscany.apache.org>
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: Daniel.Stucky@empolis.com [mailto:Daniel.Stucky@empolis.com]
>> Gesendet: Freitag, 5. September 2008 13:33
>> An: user@tuscany.apache.org
>> 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:gcharters@googlemail.com]
>> > Gesendet: Donnerstag, 4. September 2008 17:32
>> > An: user@tuscany.apache.org
>> > 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 <Da...@empolis.com>:
>> > > 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
>> > >
AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Da...@empolis.com.
I don't know if these are follow ups of the problem I described earlier,
but if I start my BundleActivator (named ScaDomainActivator) that starts
the SCADomain I get errors, depending on the code I use:
Thread.currentThread().setContextClassLoader(OSGiRuntime.getRuntime(true
).getContextClassLoader());
SCADomain scaDomain = initDomainByContribution();
leads to
osgi> java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.tuscany.sca.osgi.runtime.EquinoxRuntime.startRuntime(EquinoxR
untime.java:59)
at
org.apache.tuscany.sca.osgi.runtime.OSGiRuntime.getRuntime(OSGiRuntime.j
ava:135)
at
org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(Sca
DomainActivator.java:55)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleC
ontextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivato
r(BundleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleC
ontextImpl.java:974)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHo
st.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractB
undle.java:350)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framewor
k.java:1118)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles
(StartLevelManager.java:634)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(Start
LevelManager.java:508)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLev
el(StartLevelManager.java:282)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent
(StartLevelManager.java:468)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventMana
ger.java:195)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventMa
nager.java:297)
Caused by: java.lang.NullPointerException
at
org.eclipse.osgi.internal.baseadaptor.BaseStorage.readStateData(BaseStor
age.java:687)
at
org.eclipse.osgi.internal.baseadaptor.BaseStorage.getStateManager(BaseSt
orage.java:642)
at
org.eclipse.osgi.baseadaptor.BaseAdaptor.getState(BaseAdaptor.java:392)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.j
ava:302)
... 20 more
========================================================================
========
Just executing
SCADomain scaDomain = initDomainByContribution();
leads to
java.lang.NullPointerException
at
org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.start(RuntimeBootSt
rapper.java:118)
at
org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.start(Embedd
edSCADomain.java:80)
at
org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomai
nByContribution(ScaDomainActivator.java:96)
at
org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(Sca
DomainActivator.java:57)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleC
ontextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivato
r(BundleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleC
ontextImpl.java:974)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHo
st.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractB
undle.java:350)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framewor
k.java:1118)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles
(StartLevelManager.java:634)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(Start
LevelManager.java:508)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLev
el(StartLevelManager.java:282)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent
(StartLevelManager.java:468)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventMana
ger.java:195)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventMa
nager.java:297)
java.lang.NullPointerException
at
org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.initDomai
nByContribution(ScaDomainActivator.java:104)
at
org.eclipse.eilf.connectivity.framework.sca.ScaDomainActivator.start(Sca
DomainActivator.java:57)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleC
ontextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivato
r(BundleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleC
ontextImpl.java:974)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHo
st.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractB
undle.java:350)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framewor
k.java:1118)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles
(StartLevelManager.java:634)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(Start
LevelManager.java:508)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLev
el(StartLevelManager.java:282)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent
(StartLevelManager.java:468)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventMana
ger.java:195)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventMa
nager.java:297)
This is the subset of Tuscany bundles I use (I don't use the
osgi-installer !!!):
org.apache.tuscany.sca.3rdparty.net.sf.cglib_2.0.0.1_3.jar
org.apache.tuscany.sca.3rdparty.org.apache.geronimo.specs.geronimo-commo
nj_1.1_spec_1.0.0.jar
org.apache.tuscany.sca.api_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.assembly.xml_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.assembly_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.contribution.impl_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.contribution.java_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.contribution.namespace_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.contribution.xml_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.contribution_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.core.spi_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.core_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.definitions_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.extensibility.osgi_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.extensibility_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.host.embedded_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.implementation.node_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.interface.java_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.interface_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.monitor_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.node.api_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.node.impl_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.osgi.runtime_1.4.0.SNAPSHOT.jar
org.apache.tuscany.sca.policy_1.4.0.SNAPSHOT.jar
Basically org.apache.tuscany.sca.3rdparty.javax.xml.stream.stax-api is
also needed, but we have our own bundle in SMILA (javax.xml.stream_1.0)
Daniel
Re: AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Raymond Feng <en...@gmail.com>.
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: <Da...@empolis.com>
Sent: Friday, September 05, 2008 4:53 AM
To: <us...@tuscany.apache.org>
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: Daniel.Stucky@empolis.com [mailto:Daniel.Stucky@empolis.com]
>> Gesendet: Freitag, 5. September 2008 13:33
>> An: user@tuscany.apache.org
>> 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:gcharters@googlemail.com]
>> > Gesendet: Donnerstag, 4. September 2008 17:32
>> > An: user@tuscany.apache.org
>> > 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 <Da...@empolis.com>:
>> > > 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
>> > >
AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Da...@empolis.com.
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: Daniel.Stucky@empolis.com [mailto:Daniel.Stucky@empolis.com]
> Gesendet: Freitag, 5. September 2008 13:33
> An: user@tuscany.apache.org
> 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:gcharters@googlemail.com]
> > Gesendet: Donnerstag, 4. September 2008 17:32
> > An: user@tuscany.apache.org
> > 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 <Da...@empolis.com>:
> > > 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
> > >
AW: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Da...@empolis.com.
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.startActivator(BundleContextImpl.java:1018)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.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.setServiceDiscoverer(ServiceDiscovery.java:76)
at org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTuscanyClassLoaders(OSGiBundleActivator.java:82)
at org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundleActivator.java:55)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
... 14 more
Nested Exception:
java.lang.IllegalStateException: The ServiceDiscoverer cannot be reset
at org.apache.tuscany.sca.extensibility.ServiceDiscovery.setServiceDiscoverer(ServiceDiscovery.java:76)
at org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTuscanyClassLoaders(OSGiBundleActivator.java:82)
at org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundleActivator.java:55)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.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.setServiceDiscoverer(ServiceDiscovery.java:76)
at org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTuscanyClassLoaders(OSGiBundleActivator.java:82)
at org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundleActivator.java:55)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:291)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:218)
at java.lang.Thread.run(Thread.java:595)
Bye,
Daniel
> -----Ursprüngliche Nachricht-----
> Von: Graham Charters [mailto:gcharters@googlemail.com]
> Gesendet: Donnerstag, 4. September 2008 17:32
> An: user@tuscany.apache.org
> 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 <Da...@empolis.com>:
> > 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
> >
Re: Problems with bundle org.apache.tuscany.sca.osgi.runtime_1.4.0
Posted by Graham Charters <gc...@googlemail.com>.
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 <Da...@empolis.com>:
> 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.startActivato
> r(BundleContextImpl.java:1018)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleC
> ontextImpl.java:974)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHo
> st.java:346)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBu
> ndle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBu
> ndle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start
> (FrameworkCommandProvider.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.exe
> cute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fram
> eworkConsole.java:291)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Framew
> orkConsole.java:276)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkC
> onsole.java:218)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.IncompatibleClassChangeError
> at
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTuscan
> yClassLoaders(OSGiBundleActivator.java:82)
> at
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundle
> Activator.java:55)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleC
> ontextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivato
> r(BundleContextImpl.java:993)
> ... 14 more
> Nested Exception:
> java.lang.IncompatibleClassChangeError
> at
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTuscan
> yClassLoaders(OSGiBundleActivator.java:82)
> at
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundle
> Activator.java:55)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleC
> ontextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivato
> r(BundleContextImpl.java:993)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleC
> ontextImpl.java:974)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHo
> st.java:346)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBu
> ndle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBu
> ndle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start
> (FrameworkCommandProvider.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.exe
> cute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fram
> eworkConsole.java:291)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Framew
> orkConsole.java:276)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkC
> onsole.java:218)
> at java.lang.Thread.run(Thread.java:595)
> Nested Exception:
> java.lang.IncompatibleClassChangeError
> at
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTuscan
> yClassLoaders(OSGiBundleActivator.java:82)
> at
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundle
> Activator.java:55)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleC
> ontextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivato
> r(BundleContextImpl.java:993)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleC
> ontextImpl.java:974)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHo
> st.java:346)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBu
> ndle.java:260)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBu
> ndle.java:252)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start
> (FrameworkCommandProvider.java:260)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.exe
> cute(FrameworkCommandInterpreter.java:145)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fram
> eworkConsole.java:291)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Framew
> orkConsole.java:276)
> at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkC
> 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
>