Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Running the Equinox Runtime standalone with the defaultAdaptor
Running the Equinox Runtime standalone with the defaultAdaptor [message #41531] Mon, 03 May 2004 12:47 Go to next message
Eclipse UserFriend
Originally posted by: egglersim.post.ch

i'm trying to use the eclipse osgi runtime kernel on the server-side, as
many others have tried before. here's me problem.

main:
public static void main(String[] args)
{
org.eclipse.osgi.framework.launcher.Launcher.main(new String[]
{"-console"});
}

there's no problem launching the framework (in the osgi console:
osgi>launch)

typing ss gives me the following output:

osgi>ss
Framework is launched.

id Type State Bundle
0 ACTIVE System Bundle [0]

i can also install the eclipse osgi bundle without a problem:

osgi>install file:C:\eclipse\m8\eclipse\plugins\org.eclipse.osgi_3.0.0
Bundle id is 1

now when i try to start the bundle with id 1, i get the following
exception:
osgi> start 1
org.osgi.framework.BundleException: The activator
org.eclipse.osgi.framework.internal.core.SystemBundleActivat or for bundle
org.eclipse.osgi is invalid
at
org.eclipse.osgi.framework.internal.core.Bundle.loadBundleAc tivator(Bundle.java:170)
at
org.eclipse.osgi.framework.internal.core.BundleContext.start (BundleContext.java:967)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:404)
at org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle .java:304)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:140)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:286)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:271)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:231)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:206)
at java.lang.Thread.run(Thread.java:534)
Nested Exception:
java.lang.ClassNotFoundException:
org.eclipse.osgi.framework.internal.core.SystemBundleActivat or
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:348)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:116)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:251)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:332)
at
org.eclipse.osgi.framework.internal.core.Bundle.loadBundleAc tivator(Bundle.java:163)
at
org.eclipse.osgi.framework.internal.core.BundleContext.start (BundleContext.java:967)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:404)
at org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle .java:304)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:140)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:286)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:271)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:231)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:206)
at java.lang.Thread.run(Thread.java:534)





since all other plugins are dependend on the org.osgi.* packages, i need
to install the eclipse osgi bundle.. why does it not work?



cheers,
simon
Re: Running the Equinox Runtime standalone with the defaultAdaptor [message #41635 is a reply to message #41531] Mon, 03 May 2004 14:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jeff_mcaffer.REMOVE.ca.ibm.com

Simon,

the org.eclipse.osgi bundle IS the "System Bundle" you are already running.
(i.e., in OSGi terms, it is bundle 0). It is already installed and running.

Jeff

"Simon Eggler" <egglersim@post.ch> wrote in message
news:c75f1s$jul$1@eclipse.org...
> i'm trying to use the eclipse osgi runtime kernel on the server-side, as
> many others have tried before. here's me problem.
>
> main:
> public static void main(String[] args)
> {
> org.eclipse.osgi.framework.launcher.Launcher.main(new String[]
> {"-console"});
> }
>
> there's no problem launching the framework (in the osgi console:
> osgi>launch)
>
> typing ss gives me the following output:
>
> osgi>ss
> Framework is launched.
>
> id Type State Bundle
> 0 ACTIVE System Bundle [0]
>
> i can also install the eclipse osgi bundle without a problem:
>
> osgi>install file:C:\eclipse\m8\eclipse\plugins\org.eclipse.osgi_3.0.0
> Bundle id is 1
>
> now when i try to start the bundle with id 1, i get the following
> exception:
> osgi> start 1
> org.osgi.framework.BundleException: The activator
> org.eclipse.osgi.framework.internal.core.SystemBundleActivat or for bundle
> org.eclipse.osgi is invalid
> at
>
org.eclipse.osgi.framework.internal.core.Bundle.loadBundleAc tivator(Bundle.j
ava:170)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContext.start (BundleContext.j
ava:967)
> at
>
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
ava:404)
> at org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle .java:304)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(Fra
meworkCommandProvider.java:226)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute
(FrameworkCommandInterpreter.java:140)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(Framewor
kConsole.java:286)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
onsole.java:271)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
onsole.java:231)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConso
le.java:206)
> at java.lang.Thread.run(Thread.java:534)
> Nested Exception:
> java.lang.ClassNotFoundException:
> org.eclipse.osgi.framework.internal.core.SystemBundleActivat or
> at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
..java:348)
> at
>
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
ctClassLoader.java:116)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader
..java:251)
> at
>
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.jav
a:332)
> at
>
org.eclipse.osgi.framework.internal.core.Bundle.loadBundleAc tivator(Bundle.j
ava:163)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContext.start (BundleContext.j
ava:967)
> at
>
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
ava:404)
> at org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle .java:304)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(Fra
meworkCommandProvider.java:226)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute
(FrameworkCommandInterpreter.java:140)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(Framewor
kConsole.java:286)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
onsole.java:271)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
onsole.java:231)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConso
le.java:206)
> at java.lang.Thread.run(Thread.java:534)
>
>
>
>
>
> since all other plugins are dependend on the org.osgi.* packages, i need
> to install the eclipse osgi bundle.. why does it not work?
>
>
>
> cheers,
> simon
>
>
>
>
>
Re: Running the Equinox Runtime standalone with the defaultAdaptor [message #41806 is a reply to message #41635] Tue, 04 May 2004 12:06 Go to previous message
Eclipse UserFriend
Originally posted by: egglersim.post.ch

Jeff McAffer wrote:

are you sure, because the only provides bundle/service is:
osgi> bundles
System Bundle [0]
Id=0, Status=ACTIVE
Registered Services

{org.eclipse.osgi.framework.console.CommandProvider}={servic e.ranking=2147483647,
service.id=1}
Services in use:

{org.eclipse.osgi.framework.console.CommandProvider}={servic e.ranking=2147483647,
service.id=1}
file:c:\pfgui\osgi\Oscar\tutorial\example1\target\example1-1 .0.jar [1]
Id=1, Status=INSTALLED Data
Root=C:\pfgui\osgi\Oscar\workspace\rocket\bundles\1\data No registered
services.
No services in use.

so when trying to start another bundle, that requires Import-Package:
org.osgi.framework; specification-version=1.2, i get a

org.osgi.framework.BundleException: The bundle could not be resolved.
Reason: missing imported package org.osgi.framework_1.2.0
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:391)
at
org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle .java:304)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(FrameworkCommandProvider.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute(FrameworkCommandInterpreter.java:140)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(FrameworkConsole.java:286)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:271)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkConsole.java:231)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConsole.java:206)


simon



> Simon,

> the org.eclipse.osgi bundle IS the "System Bundle" you are already running.
> (i.e., in OSGi terms, it is bundle 0). It is already installed and running.

> Jeff

> "Simon Eggler" <egglersim@post.ch> wrote in message
> news:c75f1s$jul$1@eclipse.org...
> > i'm trying to use the eclipse osgi runtime kernel on the server-side, as
> > many others have tried before. here's me problem.
> >
> > main:
> > public static void main(String[] args)
> > {
> > org.eclipse.osgi.framework.launcher.Launcher.main(new String[]
> > {"-console"});
> > }
> >
> > there's no problem launching the framework (in the osgi console:
> > osgi>launch)
> >
> > typing ss gives me the following output:
> >
> > osgi>ss
> > Framework is launched.
> >
> > id Type State Bundle
> > 0 ACTIVE System Bundle [0]
> >
> > i can also install the eclipse osgi bundle without a problem:
> >
> > osgi>install file:C:eclipsem8eclipsepluginsorg.eclipse.osgi_3.0.0
> > Bundle id is 1
> >
> > now when i try to start the bundle with id 1, i get the following
> > exception:
> > osgi> start 1
> > org.osgi.framework.BundleException: The activator
> > org.eclipse.osgi.framework.internal.core.SystemBundleActivat or for bundle
> > org.eclipse.osgi is invalid
> > at
> >
> org.eclipse.osgi.framework.internal.core.Bundle.loadBundleAc tivator(Bundle.j
> ava:170)
> > at
> >
> org.eclipse.osgi.framework.internal.core.BundleContext.start (BundleContext.j
> ava:967)
> > at
> >
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
> ava:404)
> > at org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle .java:304)
> > at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(Fra
> meworkCommandProvider.java:226)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
> )
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
> ..java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute
> (FrameworkCommandInterpreter.java:140)
> > at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(Framewor
> kConsole.java:286)
> > at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
> onsole.java:271)
> > at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
> onsole.java:231)
> > at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConso
> le.java:206)
> > at java.lang.Thread.run(Thread.java:534)
> > Nested Exception:
> > java.lang.ClassNotFoundException:
> > org.eclipse.osgi.framework.internal.core.SystemBundleActivat or
> > at
> >
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
> ..java:348)
> > at
> >
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
> ctClassLoader.java:116)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> > at
> >
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader
> ..java:251)
> > at
> >
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.jav
> a:332)
> > at
> >
> org.eclipse.osgi.framework.internal.core.Bundle.loadBundleAc tivator(Bundle.j
> ava:163)
> > at
> >
> org.eclipse.osgi.framework.internal.core.BundleContext.start (BundleContext.j
> ava:967)
> > at
> >
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
> ava:404)
> > at org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle .java:304)
> > at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(Fra
> meworkCommandProvider.java:226)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
> )
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
> ..java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute
> (FrameworkCommandInterpreter.java:140)
> > at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(Framewor
> kConsole.java:286)
> > at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
> onsole.java:271)
> > at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
> onsole.java:231)
> > at
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConso
> le.java:206)
> > at java.lang.Thread.run(Thread.java:534)
> >
> >
> >
> >
> >
> > since all other plugins are dependend on the org.osgi.* packages, i need
> > to install the eclipse osgi bundle.. why does it not work?
> >
> >
> >
> > cheers,
> > simon
> >
> >
> >
> >
> >
Previous Topic:Is branding working in M8?
Next Topic:jboss plugin
Goto Forum:
  


Current Time: Tue Apr 30 06:04:13 GMT 2024

Powered by FUDForum. Page generated in 0.03193 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top