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:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 4. September 2008 17:32
> An: [email protected]
> Betreff: Re: Problems with bundle
> org.apache.tuscany.sca.osgi.runtime_1.4.0
> 
> Hi Daniel,
> 
> I recently got an IncompatibleClassChangeError during activation and
> for me it was resolved by rebuilding extensibility, extensibility-osgi
> and osgi-runtime.  Maybe this will work for you?
> 
> Regards, Graham.
> 
> 2008/9/4  <[EMAIL PROTECTED]>:
> > Hi all,
> >
> > I'm still (or again) trying to integrate Tuscany in SMILA. After svn
> > update I built all osgi-bundles successfully.
> >
> > I do not use all Tuscany bundles in my project but only selected ones
> > (the ones I require for the functionality I need and of course the
> ones
> > required by those). As far as I can tell all dependencies are
> fulfilled
> > as all bundles start successfully except the one below. I use eclipse
> > 3.3 with equinox.
> >
> > If I start bundle org.apache.tuscany.sca.osgi.runtime_1.4.0 I get the
> > following error:
> >
> > org.osgi.framework.BundleException: Exception in
> > org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start() of
> > bundle org.apache.tuscany.sca.osgi.runtime.
> >        at
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> o
> > r(BundleContextImpl.java:1018)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> C
> > ontextImpl.java:974)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> o
> > st.java:346)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> u
> > ndle.java:260)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> u
> > ndle.java:252)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> t
> > (FrameworkCommandProvider.java:260)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> v
> > a:39)
> >        at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> r
> > Impl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:585)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> e
> > cute(FrameworkCommandInterpreter.java:145)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> m
> > eworkConsole.java:291)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> w
> > orkConsole.java:276)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> C
> > onsole.java:218)
> >        at java.lang.Thread.run(Thread.java:595)
> > Caused by: java.lang.IncompatibleClassChangeError
> >        at
> >
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> n
> > yClassLoaders(OSGiBundleActivator.java:82)
> >        at
> >
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> e
> > Activator.java:55)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> C
> > ontextImpl.java:999)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> o
> > r(BundleContextImpl.java:993)
> >        ... 14 more
> > Nested Exception:
> > java.lang.IncompatibleClassChangeError
> >        at
> >
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> n
> > yClassLoaders(OSGiBundleActivator.java:82)
> >        at
> >
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> e
> > Activator.java:55)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> C
> > ontextImpl.java:999)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> o
> > r(BundleContextImpl.java:993)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> C
> > ontextImpl.java:974)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> o
> > st.java:346)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> u
> > ndle.java:260)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> u
> > ndle.java:252)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> t
> > (FrameworkCommandProvider.java:260)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> v
> > a:39)
> >        at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> r
> > Impl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:585)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> e
> > cute(FrameworkCommandInterpreter.java:145)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> m
> > eworkConsole.java:291)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> w
> > orkConsole.java:276)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> C
> > onsole.java:218)
> >        at java.lang.Thread.run(Thread.java:595)
> > Nested Exception:
> > java.lang.IncompatibleClassChangeError
> >        at
> >
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> n
> > yClassLoaders(OSGiBundleActivator.java:82)
> >        at
> >
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> e
> > Activator.java:55)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> C
> > ontextImpl.java:999)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> o
> > r(BundleContextImpl.java:993)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> C
> > ontextImpl.java:974)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> o
> > st.java:346)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> u
> > ndle.java:260)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> u
> > ndle.java:252)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> t
> > (FrameworkCommandProvider.java:260)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> v
> > a:39)
> >        at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> r
> > Impl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:585)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> e
> > cute(FrameworkCommandInterpreter.java:145)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> m
> > eworkConsole.java:291)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> w
> > orkConsole.java:276)
> >        at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> C
> > onsole.java:218)
> >        at java.lang.Thread.run(Thread.java:595)
> >
> >
> > I also noticed that in the manifest of this bundle package
> > "org.apache.tuscany.sca.osgi.runtime" is exported  as well as
> imported.
> > The latter seems to be unnecessary.
> >
> > Bye,
> > Daniel
> >

Reply via email to