I downloaded Centera_SDK_VIM1.0p2_Linux-GCC4 and Centera_SDK_XAM1.0p2_Linux-GCC4 and exported the both libraries in the lib64 folder to the $LD_LIBRARY_PATH, but when I try to run sample code I receive the following message:
XAM Error occured: Error loading XAM Library or its dependencies(0)
I need to understend better this message, anyone can help me?
Thanks for the response - btw Here is my os and jvm version , steps performed to connect to the centera-is
Linux llrzw2011 2.6.18-194.8.1.el5 #1 SMP Wed Jun 23 10:52:51 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
java version "1.6.0_17" Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
After ssh to Linux
1. I did tar -xvf Centera_SDK_VIM1.0p2_Linux-GCC4.tgz, file and it extracted the .so and links to it. 2. Added the VIM lib32 to LD_LIBARY_PATH 3. I did tar -xvf Centera_SDK_XAM1.0p2_Linux-GCC4.tgz, file and it extracted the .so and links to it. 4. Added the XAM lib32 to LD_LIBARY_PATH
$ java -verbose
[Loaded java.lang.UnsatisfiedLinkError from /opt/apps/jdk1.6.0_17/jre/lib/rt.jar] org.snia.xam.XAMException: Error loading XAM Library or its dependencies at org.snia.xam.XAMLibraryObj. (Unknown Source) at org.snia.xam.XAMLibraryObj.getLibrary(Unknown Source) at org.snia.xam.util.XAMLibraryFactory.newXAMLibra
I solved the problem extracting the VIM and XAM into linux. Before I was extracted files in Windows and moved to the Linux Server via SSH. By now is working fine.
First webapplication is initializing the XAMLibrary successfully and connects to the Centera Device? The second webapplication is trying is not able to initialize the library and getting the error: This behaviour vice versa, means if it second web application initializes first then it is loading and the first web application is failing..
org.snia.xam.XAMException: Error loading XAM Library or its dependencies at org.snia.xam.XAMLibraryObj. (Unknown Source) at org.snia.xam.XAMLibraryObj.getLibrary(Unknown Source) at org.snia.xam.util.XAMLibraryFactory.newXAMLibrary(Unknown Source)
Is it possible to initialize XAM Library from two different web application's running on the same JVM?
lsegala
7 Posts
728
0
Posted November 25th, 2010 08:00
Additional info:
$uname -a
Linux ###### 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
$gcc -v
Target: x86_64-redhat-linux
gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)