I'm trying to execute TFS SDK Api commands in an axis2 web service deployed on 
Tomcat7.

I successfully ran my small application on windows platform.
I want to run my web service on a Tomcat deployed on Linux.
I get the UnsatisfiedLinkError (Exception):
....
Caused by: java.lang.UnsatisfiedLinkError: 
com.microsoft.tfs.jni.internal.platformmisc.NativePlatformMisc.nativeGetEnvironmentVariable(Ljava/lang/String;)Ljava/lang/String;
....

I defined com.microsoft.tfs.jni.native.base-directory system property.
I modified setenv.sh to include -D"com.microsoft...=/home/user/tfsbin" line.
I can see that above system variable is defined on Tomcat Axis2 happiness page 
(It gives
information about VM parameters)

My linux is 32 bit intel machine so I chose linux\x86 as native library files 
(5 .so files)
I copied them to /home/user/tfsbin and set 
com.microsoft.tfs.jni.native.base-directory to this folder.

I'm using Ubuntu, Oracle jdk7, Tomcat7, Apache Axis2 1.6.2. TFS SDK 11.0.0.1211

I still get that UnsatisfiedLinkError :((

Any help is appreciated!

Reply via email to