Thank you Richard,
Ok for the API version. I indeed compile against version 4.3:
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.3.0</version>
</dependency>
As I said in my previous post, when I do not set the version in BND, it
crashes.
However, when I configure the framework version like this, it works:
<Import-Package>
org.osgi.framework;version="[1.3, 2.0)",
...
</Import-Package>
What I find confusing are all these version numbers:
- API: 4.3
- org.osgi.framework: between 1.3 and 2.0
- felix: 4.0
What is the correspondance between all these numbers? Does Felix 4
supports API 4.3 and exports org.osgi.framework 1.3?
Is there a way to check it (via a gogo command for instance)?
Kind regards,
Ben
Le mardi 04 octobre 2011 à 20:01 -0400, Richard Hall a écrit :
> Typically the version is inserted by bnd based on the version it compiles
> against. If you are compiling it against R4.3 API and then deploying to an
> R4.2 framework, then you might see this issue. You should always compile
> against the lowest required version.
>
> -> richard
>
> 2011/10/4 Benoît Thiébault <[email protected]>
>
> > Hi,
> >
> > When starting my bundle, I have the following error:
> >
> > org.osgi.framework.BundleException: Unresolved constraint in bundle
> > org-keridwen-vtk-linux64b [12]: Unable to resolve 12.0: missing
> > requirement [12.0] package;
> > (&(package=org.osgi.framework)(version>=1.6.0)(!(version>=2.0.0)))
> >
> > In the bundle manifest, I have the following entry:
> > <Import-Package>
> > org.osgi.framework,
> > javax.swing.*
> > </Import-Package>
> >
> > The osgi framework is set as an import, but no version is provided.
> > How can I know what version to set here? I guess it depends on my felix
> > install? How do I know what version is exported by the my felix
> > framework?
> >
> > Kind regards
> >
> > Ben
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]