Hello everyone,
I'm trying to develop a Java webapplication with Glassfish using JSF and OpenCV. I wrote some code which works fine on Java desktop application. However, when I try to implement it on Glassfish app it shows me an error (UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat(IIIDDDD)J), when I use System.loadLibrary(Core.NATIVE_LIBRARY_NAME)
before I get java.lang.UnsatisfiedLinkError: Native Library already loaded in another classloader
.
I tried putting loading code into singleton - still this same situation. Tried to load singleton in different application - dll loaded but the application does not have access to it and first error appears.
I tested 2.4.10, 2.4.11 and 3.0 versions. I'm working on Windows and using Netbeans.
Thank you in advance.