You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "John D. Ament" <jo...@apache.org> on 2016/02/20 16:03:41 UTC

OSGi Support?

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

Re: OSGi Support?

Posted by Yakov Zhdanov <yz...@apache.org>.
Raul, can you please help with the issue?

--Yakov

2016-02-20 18:03 GMT+03:00 John D. Ament <jo...@apache.org>:

> 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
>

Re: OSGi Support?

Posted by Raul Kripalani <ra...@apache.org>.
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" <ds...@apache.org> 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 <ra...@apache.org> 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" <jo...@apache.org> 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
> > >
> >
>

Re: OSGi Support?

Posted by Dmitriy Setrakyan <ds...@apache.org>.
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 <ra...@apache.org> 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" <jo...@apache.org> 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
> >
>

Re: OSGi Support?

Posted by Raul Kripalani <ra...@apache.org>.
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" <jo...@apache.org> 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
>