Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » org.eclipse.osgi.framework.console not accessible + order of starting bundles
org.eclipse.osgi.framework.console not accessible + order of starting bundles [message #50638] Sun, 16 October 2005 15:06 Go to next message
Eclipse UserFriend
Originally posted by: mslocins.gmail.com

Hi,

in
http://www.eclipse.org/newsportal/article.php?id=1045&gr oup=eclipse.technology.equinox#1045
I found that org.eclipse.osgi.framework.console.CommandProvider can be
implemented and registered as a service in order to extend console with
additional commands. There is a discussion if
org.eclipse.osgi.framework.console should be exported or not - however in
Eclipse 3.2 I noticed it is exported already. I added such dependency to
org.eclipse.osgi.framework.console in my plugin, however I'm getting
ClassNotFoundException when I try to register my service implementing that
interface. My manifest file contains:

Import-Package: org.eclipse.osgi.framework.console,
org.osgi.framework;version="1.3.0"

Do you know solution for that issue?

Other question is order of installing and starting bundles. On
http://eclipse.org/equinox/quickstart.html there is following information:

"Where config.ini is a Java properties file that contains the following
line. Note that the osgi.bundles property is quite powerful. See the doc
for details.

osgi.bundles=B1:start, B2:start
"

It doesn't work for me - I had to browse through Eclipse installation
folder and add such line in my config.ini:

osgi.bundles=B1@2:start, B2@3:start

I thought @2, @3 describes order of installing/starting of bundles, but
unfortunatelly it doesn't work as I expected. Could someone tell me what
is role of those numbers? Additional question is - how to define order of
starting bundles?

Michal
Re: org.eclipse.osgi.framework.console not accessible + order of starting bundle [message #50665 is a reply to message #50638] Sun, 16 October 2005 18:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mslocins.gmail.com

Sorry for previous mail :-/ Everything works as I expected, root of my
issues were symlinks in filesystem (ext3@linux), I had following directory
structure with two bundles (test and srv):

configuration
config.ini
test -> /path/to/real/test
srv -> /path/to/real/srv
org.eclipse.osgi.jar

it didn't work well so don't try it at home :-] After starting using real
directories, everything runs smoothly now.

Michal
Re: org.eclipse.osgi.framework.console not accessible + order of starting bundles [message #50919 is a reply to message #50638] Thu, 20 October 2005 01:10 Go to previous message
Eclipse UserFriend
Originally posted by: jeff_nospam_mcaffer.ca.ibm.com

the numbers are start levels. Bundles are installed optionally marked as
"startable" in hte order they are listed. Note that they are not acutally
started (i.e., their start methods called) until the system's start level
reaches the level at which they reside. See

http://help.eclipse.org/help31/topic/org.eclipse.platform.do c.isv/reference/misc/runtime-options.html

Jeff

"Michal" <mslocins@gmail.com> wrote in message
news:4600a4ff974c63c439e62dfc484c90c5$1@www.eclipse.org...
> Hi,
>
> in
>
http://www.eclipse.org/newsportal/article.php?id=1045&gr oup=eclipse.technology.equinox#1045
> I found that org.eclipse.osgi.framework.console.CommandProvider can be
> implemented and registered as a service in order to extend console with
> additional commands. There is a discussion if
> org.eclipse.osgi.framework.console should be exported or not - however in
> Eclipse 3.2 I noticed it is exported already. I added such dependency to
> org.eclipse.osgi.framework.console in my plugin, however I'm getting
> ClassNotFoundException when I try to register my service implementing that
> interface. My manifest file contains:
>
> Import-Package: org.eclipse.osgi.framework.console,
> org.osgi.framework;version="1.3.0"
>
> Do you know solution for that issue?
>
> Other question is order of installing and starting bundles. On
> http://eclipse.org/equinox/quickstart.html there is following information:
>
> "Where config.ini is a Java properties file that contains the following
> line. Note that the osgi.bundles property is quite powerful. See the doc
> for details.
>
> osgi.bundles=B1:start, B2:start
> "
>
> It doesn't work for me - I had to browse through Eclipse installation
> folder and add such line in my config.ini:
>
> osgi.bundles=B1@2:start, B2@3:start
>
> I thought @2, @3 describes order of installing/starting of bundles, but
> unfortunatelly it doesn't work as I expected. Could someone tell me what
> is role of those numbers? Additional question is - how to define order of
> starting bundles?
>
> Michal
>
Previous Topic:shared install and varying configurations
Next Topic:Equinox OSGi VS Spring ?
Goto Forum:
  


Current Time: Fri Apr 26 17:07:15 GMT 2024

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

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

Back to the top