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
0
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)
Sellapsx
7 Posts
0
February 10th, 2011 18:00
I'm also having the same problem. Is it got resolved?
Thanks
Sellapsx
7 Posts
0
February 11th, 2011 08:00
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
Is there any steps that i'm missing from?
Thanks..
lsegala
7 Posts
0
February 11th, 2011 08:00
Hi,
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.
Regards,
lsegala
7 Posts
0
February 11th, 2011 10:00
Your arch is x86_64, try to add to LD_LIBRARY_PATH the lib64 dir.
Sellapsx
7 Posts
0
February 25th, 2011 12:00
Thanks for the input and it is working.
Sellapsx
7 Posts
0
March 21st, 2011 07:00
Hello.
I'm getting "Error loading XAM Library or its dependencies" at a different situation: Here is my scenario:
I've two web applications running on the same jvm. Both web application is initializing the XAMLibraryFactory by
try{
testXamLib = XAMLibraryFactory.newXAMLibrary();
connectString="snia-xam://centera_vim!"+getServerName()+"?"+getCertificatePath();
testSystem = testXamLib.connect(connectString);
}...........
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?
thanks in advance.