Hi JB,

I have managed to deploy my bundle into Karaf 4.0.8. It was important that I 
resolved the first issue regarding jansi as this prevented testing with PAX 
Exam.

The second issue regarding missing dependencies is either a Felix issue or the 
JVM. I've noted that the oracle JRE in the Raspbian repos reports the 
architecture as 'arm' where as the OSGi specification this is deprecated in 
favour of also specifying the endianess of the processor. i'll check to see if 
this has been updated in the latest JRE available from oracle

Kerry


On 20/03/17 13:38, Jean-Baptiste Onofré wrote:
Hi Kerry,

Agree with Markus in term of version running on ARM platform.

For this issue, it seems more a Felix issue than a Karaf issue. Did you try 
with Equinox instead of Felix framework ?

Regards
JB

On 03/19/2017 10:52 PM, JT wrote:
Hi Markus,

Thanks for the reply. I tried 4.0.8 and that does fix the first problem.

I also found the cause of the second issue. It seems as the the processor type
of 'arm_le' is not recognised by the system bundle. I delved into the the Apache
felix code and it looks as though it uses the result returned by
'system.getProperty("os.arch") which on the Pi is 'arm'. So when I manually
changed the manifest of my bundle to be processor of ARM it deplyed 
successfully.

Kerry

On 18/03/17 23:09, Markus Rathgeb wrote:
Hello,
the first problem you reported is known and has been already solved for K408.
So, if you ewant to use Karaf on ARM, don't use K406 or K407 -- use K408 (or
K410).


Am 18.03.2017 15:57 schrieb "JT" <karaf-u...@avionicengineers.com
<mailto:karaf-u...@avionicengineers.com>>:

    Hi all,

    I've got a couple of issues running Karaf on a RaspberryPi 2 (ARM 32 bit).

    Starting Karaf is fine but:

    1. trying to log-in locally with './client' results in the error:

    Could not load library. Reasons: [no jansi in java.library.path,
/home/pi/apache-karaf-4.0.7/data/tmp/libjansi-32-5060191913484045686.so:
/home/pi/apache-karaf-4.0.7/data/tmp/libjansi-32-5060191913484045686.so:
    cannot open shared object file: No such file or directory (Possible cause:
    can't load IA 32-bit .so on a ARM-bit platform)]

    libjansi is available in the Raspbian repos and tried installing but still
    got the same error. Looks like Karaf looks for this in it;s local
    installation? Is there a way around this?

    2. I can ssh into a running Karaf and then I have tried to deploy the
    latest build of OpenCV 3.2.0 Java bundle which includes the native OpenCv
    library, but I get this error:

    Error starting bundle 52: Unable to resolve org.opencv [52](R 52.0):
    missing requirement [org.opencv [52](R 52.0)] osgi.native;
(&(osgi.native.osname~=linux)(osgi.native.processor~=arm_le)) Unresolved
    requirements: [[org.opencv [52](R 52.0)] osgi.native;
(&(osgi.native.osname~=linux)(osgi.native.processor~=arm_le))]

    Is there anyway I can resolve this missing dependency?

    Thanks

    Kerry





Reply via email to