You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Daniel Las <da...@empirica.io> on 2021/03/11 20:28:03 UTC
Native library in Karaf
Hi,
How can I make Karaf to see Netty native library?
I'm using Cassandra java driver complaining against
missing libnetty_transport_native_epoll_x86_64.so
2021-03-11T21:23:04,069 | WARN | FelixStartLevel | NettyUtil
| 612 - com.datastax.driver.core - 3.10.2 | Found Netty's native
epoll transport in the classpath, but epoll is not available. Using NIO
instead.
java.lang.UnsatisfiedLinkError: could not load a native library:
netty_transport_native_epoll_x86_64
Best regards
--
Daniel Łaś
Re: Native library in Karaf
Posted by Daniel Las <da...@empirica.io>.
Thank you,
I just added the shared library file to the expected location inside the
bundle and it works now.
Regards
pt., 12 mar 2021 o 06:08 Jean-Baptiste Onofre <jb...@nanthrax.net> napisał(a):
> HI Daniel,
>
> If you are using bundle, you have the Bundle-NativeCode allowing to define
> the location of dll/so lib.
>
> It’s also possible to add at Karaf global level (java.library.path).
>
> Regards
> JB
>
> > Le 11 mars 2021 à 21:28, Daniel Las <da...@empirica.io> a écrit :
> >
> > Hi,
> >
> > How can I make Karaf to see Netty native library?
> > I'm using Cassandra java driver complaining against missing
> libnetty_transport_native_epoll_x86_64.so
> >
> > 2021-03-11T21:23:04,069 | WARN | FelixStartLevel | NettyUtil
> | 612 - com.datastax.driver.core - 3.10.2 | Found Netty's
> native epoll transport in the classpath, but epoll is not available. Using
> NIO instead.
> > java.lang.UnsatisfiedLinkError: could not load a native library:
> netty_transport_native_epoll_x86_64
> >
> > Best regards
> > --
> > Daniel Łaś
>
>
--
Daniel Łaś
Re: Native library in Karaf
Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
HI Daniel,
If you are using bundle, you have the Bundle-NativeCode allowing to define the location of dll/so lib.
It’s also possible to add at Karaf global level (java.library.path).
Regards
JB
> Le 11 mars 2021 à 21:28, Daniel Las <da...@empirica.io> a écrit :
>
> Hi,
>
> How can I make Karaf to see Netty native library?
> I'm using Cassandra java driver complaining against missing libnetty_transport_native_epoll_x86_64.so
>
> 2021-03-11T21:23:04,069 | WARN | FelixStartLevel | NettyUtil | 612 - com.datastax.driver.core - 3.10.2 | Found Netty's native epoll transport in the classpath, but epoll is not available. Using NIO instead.
> java.lang.UnsatisfiedLinkError: could not load a native library: netty_transport_native_epoll_x86_64
>
> Best regards
> --
> Daniel Łaś