Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » [m7] import package problem
[m7] import package problem [message #38435] Wed, 24 March 2004 16:19 Go to next message
Eclipse UserFriend
Originally posted by: alexsmr.sympatico.ca

Hi,

In my project I created a plugin that provide some package to OSGi, I have
also created pure OSGi type bundle that imports the package from that plugin
(I have require header for my plugin ). But with or without import-package
clause I am getting exception. Something like this with import clause:

org.osgi.framework.BundleException: The bundle could not be resolved.
Reason: missing imported package com.trillint.facelet.component

and CLassNotFound exception without import clause.

Any ideas?

Thanks,
Alex.
Re: [m7] import package problem [message #38469 is a reply to message #38435] Wed, 24 March 2004 18:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexsmr.sympatico.ca

Sorry to bother. I didn't refresh packages after bundle installation. Now it
works. Doesn't seems to be standard OSGi procedure though.

Alex.

>
> In my project I created a plugin that provide some package to OSGi, I have
> also created pure OSGi type bundle that imports the package from that
plugin
> (I have require header for my plugin ). But with or without
import-package
> clause I am getting exception. Something like this with import clause:
>
> org.osgi.framework.BundleException: The bundle could not be resolved.
> Reason: missing imported package com.trillint.facelet.component
>
> and CLassNotFound exception without import clause.
>
> Any ideas?
>
> Thanks,
> Alex.
>
>
Re: [m7] import package problem [message #38562 is a reply to message #38469] Thu, 25 March 2004 12:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pascal.ibm.canada

You install a bundle, then you refresh it.

PaScaL

Alex Smirnoff wrote:
> Sorry to bother. I didn't refresh packages after bundle installation. Now it
> works. Doesn't seems to be standard OSGi procedure though.
>
> Alex.
>
>
>>In my project I created a plugin that provide some package to OSGi, I have
>>also created pure OSGi type bundle that imports the package from that
>
> plugin
>
>>(I have require header for my plugin ). But with or without
>
> import-package
>
>>clause I am getting exception. Something like this with import clause:
>>
>>org.osgi.framework.BundleException: The bundle could not be resolved.
>>Reason: missing imported package com.trillint.facelet.component
>>
>>and CLassNotFound exception without import clause.
>>
>>Any ideas?
>>
>>Thanks,
>>Alex.
>>
>>
>
>
>
Re: [m7] import package problem [message #38785 is a reply to message #38469] Sat, 27 March 2004 01:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pascal.ibm.canada

Just realized that my previous post was not really helpful...
Why are you saying that it "doesn't seems to be standard OSGi procedure"?
Also could you provide a simplified version of this example, I'm not
sure I'm getting what you are saying.

PaScaL

Alex Smirnoff wrote:

> Sorry to bother. I didn't refresh packages after bundle installation. Now it
> works. Doesn't seems to be standard OSGi procedure though.
>
> Alex.
>
>
>>In my project I created a plugin that provide some package to OSGi, I have
>>also created pure OSGi type bundle that imports the package from that
>
> plugin
>
>>(I have require header for my plugin ). But with or without
>
> import-package
>
>>clause I am getting exception. Something like this with import clause:
>>
>>org.osgi.framework.BundleException: The bundle could not be resolved.
>>Reason: missing imported package com.trillint.facelet.component
>>
>>and CLassNotFound exception without import clause.
>>
>>Any ideas?
>>
>>Thanks,
>>Alex.
>>
>>
>
>
>
Re: [m7] import package problem [message #39174 is a reply to message #38785] Wed, 31 March 2004 21:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexsmr.sympatico.ca

Pascal,

When installing the bundle it tries to resolve dependencies and enter
RESOLVED state. As far as I understand "Require-Bundle" and
"Provide-Package" are eclipse additions to OSGi standard that
come with a cost of "refreshing" packages after installation part.
In other words, it will not resolve dependencies during installation
phase (unless you explicitly refresh packages).

So that part doesn't seems to me very compliant with OSGi.

Thanks,
Alex.

> Just realized that my previous post was not really helpful...
> Why are you saying that it "doesn't seems to be standard OSGi procedure"?
> Also could you provide a simplified version of this example, I'm not
> sure I'm getting what you are saying.
>
> PaScaL
>
> Alex Smirnoff wrote:
>
> > Sorry to bother. I didn't refresh packages after bundle installation.
Now it
> > works. Doesn't seems to be standard OSGi procedure though.
> >
> > Alex.
> >
> >
> >>In my project I created a plugin that provide some package to OSGi, I
have
> >>also created pure OSGi type bundle that imports the package from that
> >
> > plugin
> >
> >>(I have require header for my plugin ). But with or without
> >
> > import-package
> >
> >>clause I am getting exception. Something like this with import clause:
> >>
> >>org.osgi.framework.BundleException: The bundle could not be resolved.
> >>Reason: missing imported package com.trillint.facelet.component
> >>
> >>and CLassNotFound exception without import clause.
> >>
> >>Any ideas?
> >>
> >>Thanks,
> >>Alex.
> >>
> >>
> >
> >
> >
Re: [m7] import package problem [message #39266 is a reply to message #39174] Thu, 01 April 2004 00:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pascal.ibm.canada

In the R3.0 of the spec, nothing is said about when the bundles should
be set to the RESOLVED state. It is up to the implementation to do it
lazily or eagerly.
Here is an excerpt of spec:

6 - The bundle’s state is set to INSTALLED.
7 - If the bundle has not declared an Import-Package Manifest header
(that is, the bundle does not depend on any packages from other OSGi
bundles), the bundle’s state may be set to RESOLVED.

PaScaL

Alex Smirnoff wrote:

> Pascal,
>
> When installing the bundle it tries to resolve dependencies and enter
> RESOLVED state. As far as I understand "Require-Bundle" and
> "Provide-Package" are eclipse additions to OSGi standard that
> come with a cost of "refreshing" packages after installation part.
> In other words, it will not resolve dependencies during installation
> phase (unless you explicitly refresh packages).
>
> So that part doesn't seems to me very compliant with OSGi.
>
> Thanks,
> Alex.
>
>
>>Just realized that my previous post was not really helpful...
>>Why are you saying that it "doesn't seems to be standard OSGi procedure"?
>>Also could you provide a simplified version of this example, I'm not
>>sure I'm getting what you are saying.
>>
>>PaScaL
>>
>>Alex Smirnoff wrote:
>>
>>
>>>Sorry to bother. I didn't refresh packages after bundle installation.
>
> Now it
>
>>>works. Doesn't seems to be standard OSGi procedure though.
>>>
>>>Alex.
>>>
>>>
>>>
>>>>In my project I created a plugin that provide some package to OSGi, I
>
> have
>
>>>>also created pure OSGi type bundle that imports the package from that
>>>
>>>plugin
>>>
>>>
>>>>(I have require header for my plugin ). But with or without
>>>
>>>import-package
>>>
>>>
>>>>clause I am getting exception. Something like this with import clause:
>>>>
>>>>org.osgi.framework.BundleException: The bundle could not be resolved.
>>>>Reason: missing imported package com.trillint.facelet.component
>>>>
>>>>and CLassNotFound exception without import clause.
>>>>
>>>>Any ideas?
>>>>
>>>>Thanks,
>>>>Alex.
>>>>
>>>>
>>>
>>>
>>>
>
>
Re: [m7] import package problem [message #39297 is a reply to message #39266] Thu, 01 April 2004 13:51 Go to previous message
Eclipse UserFriend
Originally posted by: alexsmr.sympatico.ca

Sorry. Hmm... Somehow I missed that point and was pretty sure that
after installation and if dependencies are resolved bundles must enter
RESOLVED state. Looks that I was wrong.

Thanks for pointing me to the right direction,
Alex.

"Pascal Rapicault" wrote:

> In the R3.0 of the spec, nothing is said about when the bundles should
> be set to the RESOLVED state. It is up to the implementation to do it
> lazily or eagerly.
> Here is an excerpt of spec:
>
> 6 - The bundle
Previous Topic:Can I retrive plugin ID?
Next Topic:Bundle access without activation (M8)
Goto Forum:
  


Current Time: Thu Nov 14 07:49:30 GMT 2024

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

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

Back to the top