OSGi Support?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

OSGi Support?

John D. Ament
Hey guys

I was looking at a Camel issue this morning.

https://issues.apache.org/jira/browse/CAMEL-9458

It appears that camel-ignite doesn't install properly in Karaf.  Looking at
it further, it seems that Ignite's OSGi module doesn't install in Karaf,
directly.  I've copied the output from that ticket here for reference

*karaf*@root()> feature:repo-add ignite 1.5.0.final

Adding feature url
mvn:org.apache.ignite/ignite-osgi-karaf/1.5.0.final/xml/features

*karaf*@root()> feature:install ignite-core

Error executing command: Unable to resolve root: missing requirement [root]
osgi.identity; osgi.identity=ignite-core; type=karaf.feature;
version="[1.5.0.final,1.5.0.final]";
filter:="(&(osgi.identity=ignite-core)(type=karaf.feature)(version>=1.5.0.final)(version<=1.5.0.final))"
[caused by: Unable to resolve ignite-core/1.5.0.final: missing requirement
[ignite-core/1.5.0.final] osgi.identity;
osgi.identity=org.apache.ignite.ignite-core; type=osgi.bundle;
version="[1.5.0.final,1.5.0.final]"; resolution:=mandatory [caused by:
Unable to resolve org.apache.ignite.ignite-core/1.5.0.final: missing
requirement [org.apache.ignite.ignite-core/1.5.0.final]
osgi.wiring.package; filter:="(osgi.wiring.package=sun.nio.ch)"]]


So I was wondering, is your OSGi manifest valid?


John
Reply | Threaded
Open this post in threaded view
|

Re: OSGi Support?

yzhdanov
Raul, can you please help with the issue?

--Yakov

2016-02-20 18:03 GMT+03:00 John D. Ament <[hidden email]>:

> Hey guys
>
> I was looking at a Camel issue this morning.
>
> https://issues.apache.org/jira/browse/CAMEL-9458
>
> It appears that camel-ignite doesn't install properly in Karaf.  Looking at
> it further, it seems that Ignite's OSGi module doesn't install in Karaf,
> directly.  I've copied the output from that ticket here for reference
>
> *karaf*@root()> feature:repo-add ignite 1.5.0.final
>
> Adding feature url
> mvn:org.apache.ignite/ignite-osgi-karaf/1.5.0.final/xml/features
>
> *karaf*@root()> feature:install ignite-core
>
> Error executing command: Unable to resolve root: missing requirement [root]
> osgi.identity; osgi.identity=ignite-core; type=karaf.feature;
> version="[1.5.0.final,1.5.0.final]";
>
> filter:="(&(osgi.identity=ignite-core)(type=karaf.feature)(version>=1.5.0.final)(version<=1.5.0.final))"
> [caused by: Unable to resolve ignite-core/1.5.0.final: missing requirement
> [ignite-core/1.5.0.final] osgi.identity;
> osgi.identity=org.apache.ignite.ignite-core; type=osgi.bundle;
> version="[1.5.0.final,1.5.0.final]"; resolution:=mandatory [caused by:
> Unable to resolve org.apache.ignite.ignite-core/1.5.0.final: missing
> requirement [org.apache.ignite.ignite-core/1.5.0.final]
> osgi.wiring.package; filter:="(osgi.wiring.package=sun.nio.ch)"]]
>
>
> So I was wondering, is your OSGi manifest valid?
>
>
> John
>
Reply | Threaded
Open this post in threaded view
|

Re: OSGi Support?

Raul Kripalani
In reply to this post by John D. Ament
Hey John,

Yeah, this is expected. Ignite uses some packages only available in the
Oracle JDK (proprietary Sun packages).

Karaf doesn't export the sun.nio.ch package by default from bundle 0
(system bundle).

You need to add it to the jre.properties file manually in the Karaf etc
directory. Then you restart Karaf and it should be exported by the system
bundle (0).

I'll add these instructions to the Ignite Docs, and also to the Camel wiki,
over the weekend.

Thanks for digging into this, John. I had missed the Camel ticket.

Cheers,
Raúl.
On 20 Feb 2016 15:03, "John D. Ament" <[hidden email]> wrote:

> Hey guys
>
> I was looking at a Camel issue this morning.
>
> https://issues.apache.org/jira/browse/CAMEL-9458
>
> It appears that camel-ignite doesn't install properly in Karaf.  Looking at
> it further, it seems that Ignite's OSGi module doesn't install in Karaf,
> directly.  I've copied the output from that ticket here for reference
>
> *karaf*@root()> feature:repo-add ignite 1.5.0.final
>
> Adding feature url
> mvn:org.apache.ignite/ignite-osgi-karaf/1.5.0.final/xml/features
>
> *karaf*@root()> feature:install ignite-core
>
> Error executing command: Unable to resolve root: missing requirement [root]
> osgi.identity; osgi.identity=ignite-core; type=karaf.feature;
> version="[1.5.0.final,1.5.0.final]";
>
> filter:="(&(osgi.identity=ignite-core)(type=karaf.feature)(version>=1.5.0.final)(version<=1.5.0.final))"
> [caused by: Unable to resolve ignite-core/1.5.0.final: missing requirement
> [ignite-core/1.5.0.final] osgi.identity;
> osgi.identity=org.apache.ignite.ignite-core; type=osgi.bundle;
> version="[1.5.0.final,1.5.0.final]"; resolution:=mandatory [caused by:
> Unable to resolve org.apache.ignite.ignite-core/1.5.0.final: missing
> requirement [org.apache.ignite.ignite-core/1.5.0.final]
> osgi.wiring.package; filter:="(osgi.wiring.package=sun.nio.ch)"]]
>
>
> So I was wondering, is your OSGi manifest valid?
>
>
> John
>
Reply | Threaded
Open this post in threaded view
|

Re: OSGi Support?

dsetrakyan
Raul,

To my knowledge Ignite can run under OpenJDK as well. Would this package be
required in OpenJDK?

D.

On Sat, Feb 20, 2016 at 11:24 AM, Raul Kripalani <[hidden email]> wrote:

> Hey John,
>
> Yeah, this is expected. Ignite uses some packages only available in the
> Oracle JDK (proprietary Sun packages).
>
> Karaf doesn't export the sun.nio.ch package by default from bundle 0
> (system bundle).
>
> You need to add it to the jre.properties file manually in the Karaf etc
> directory. Then you restart Karaf and it should be exported by the system
> bundle (0).
>
> I'll add these instructions to the Ignite Docs, and also to the Camel wiki,
> over the weekend.
>
> Thanks for digging into this, John. I had missed the Camel ticket.
>
> Cheers,
> Raúl.
> On 20 Feb 2016 15:03, "John D. Ament" <[hidden email]> wrote:
>
> > Hey guys
> >
> > I was looking at a Camel issue this morning.
> >
> > https://issues.apache.org/jira/browse/CAMEL-9458
> >
> > It appears that camel-ignite doesn't install properly in Karaf.  Looking
> at
> > it further, it seems that Ignite's OSGi module doesn't install in Karaf,
> > directly.  I've copied the output from that ticket here for reference
> >
> > *karaf*@root()> feature:repo-add ignite 1.5.0.final
> >
> > Adding feature url
> > mvn:org.apache.ignite/ignite-osgi-karaf/1.5.0.final/xml/features
> >
> > *karaf*@root()> feature:install ignite-core
> >
> > Error executing command: Unable to resolve root: missing requirement
> [root]
> > osgi.identity; osgi.identity=ignite-core; type=karaf.feature;
> > version="[1.5.0.final,1.5.0.final]";
> >
> >
> filter:="(&(osgi.identity=ignite-core)(type=karaf.feature)(version>=1.5.0.final)(version<=1.5.0.final))"
> > [caused by: Unable to resolve ignite-core/1.5.0.final: missing
> requirement
> > [ignite-core/1.5.0.final] osgi.identity;
> > osgi.identity=org.apache.ignite.ignite-core; type=osgi.bundle;
> > version="[1.5.0.final,1.5.0.final]"; resolution:=mandatory [caused by:
> > Unable to resolve org.apache.ignite.ignite-core/1.5.0.final: missing
> > requirement [org.apache.ignite.ignite-core/1.5.0.final]
> > osgi.wiring.package; filter:="(osgi.wiring.package=sun.nio.ch)"]]
> >
> >
> > So I was wondering, is your OSGi manifest valid?
> >
> >
> > John
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: OSGi Support?

Raul Kripalani
Looks like the sun.nio.ch package is included in OpenJDK:

http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/classes/sun/nio/ch/ServerSocketChannelImpl.java.


But my bet is that Karaf doesn't export it by default because it is not
part of the standard JRE spec.

Raúl.
On 20 Feb 2016 20:01, "Dmitriy Setrakyan" <[hidden email]> wrote:

> Raul,
>
> To my knowledge Ignite can run under OpenJDK as well. Would this package be
> required in OpenJDK?
>
> D.
>
> On Sat, Feb 20, 2016 at 11:24 AM, Raul Kripalani <[hidden email]> wrote:
>
> > Hey John,
> >
> > Yeah, this is expected. Ignite uses some packages only available in the
> > Oracle JDK (proprietary Sun packages).
> >
> > Karaf doesn't export the sun.nio.ch package by default from bundle 0
> > (system bundle).
> >
> > You need to add it to the jre.properties file manually in the Karaf etc
> > directory. Then you restart Karaf and it should be exported by the system
> > bundle (0).
> >
> > I'll add these instructions to the Ignite Docs, and also to the Camel
> wiki,
> > over the weekend.
> >
> > Thanks for digging into this, John. I had missed the Camel ticket.
> >
> > Cheers,
> > Raúl.
> > On 20 Feb 2016 15:03, "John D. Ament" <[hidden email]> wrote:
> >
> > > Hey guys
> > >
> > > I was looking at a Camel issue this morning.
> > >
> > > https://issues.apache.org/jira/browse/CAMEL-9458
> > >
> > > It appears that camel-ignite doesn't install properly in Karaf.
> Looking
> > at
> > > it further, it seems that Ignite's OSGi module doesn't install in
> Karaf,
> > > directly.  I've copied the output from that ticket here for reference
> > >
> > > *karaf*@root()> feature:repo-add ignite 1.5.0.final
> > >
> > > Adding feature url
> > > mvn:org.apache.ignite/ignite-osgi-karaf/1.5.0.final/xml/features
> > >
> > > *karaf*@root()> feature:install ignite-core
> > >
> > > Error executing command: Unable to resolve root: missing requirement
> > [root]
> > > osgi.identity; osgi.identity=ignite-core; type=karaf.feature;
> > > version="[1.5.0.final,1.5.0.final]";
> > >
> > >
> >
> filter:="(&(osgi.identity=ignite-core)(type=karaf.feature)(version>=1.5.0.final)(version<=1.5.0.final))"
> > > [caused by: Unable to resolve ignite-core/1.5.0.final: missing
> > requirement
> > > [ignite-core/1.5.0.final] osgi.identity;
> > > osgi.identity=org.apache.ignite.ignite-core; type=osgi.bundle;
> > > version="[1.5.0.final,1.5.0.final]"; resolution:=mandatory [caused by:
> > > Unable to resolve org.apache.ignite.ignite-core/1.5.0.final: missing
> > > requirement [org.apache.ignite.ignite-core/1.5.0.final]
> > > osgi.wiring.package; filter:="(osgi.wiring.package=sun.nio.ch)"]]
> > >
> > >
> > > So I was wondering, is your OSGi manifest valid?
> > >
> > >
> > > John
> > >
> >
>