You might also need to tweak some of the Tomcat security settings, or put the Java 
piece of the JNI code in the system classpath too, I don't think the servlet 
classloader will allow you to load native code by default.

Keith


-----Original Message-----
From: Joe [mailto:[EMAIL PROTECTED]]
Sent: 17 February 2003 04:02
To: [EMAIL PROTECTED]
Subject: Re: .so files for AXIS


Try exporting the ENV variable before you call your program:

export LD_LIBRARY_PATH=path_to_so

set this in your shell, or in the script that starts the java program.

hope it helps,

joe



Robert Morse wrote:

>Within my AXIS service, I need to call some legacy code that is in a .so
>file.  I have the Java wrappers written, and a small Java test program
>successfully calls the C routines in the library.  My problem is where
>to put the .so files so that my Axis service can find them.  I've tried
>defining java.library.path, setting LD_LIBRARY_PATH with no luck.  My
>environment is Sun Solaris (SPARC), Tomcat 4.1.18-LE, jdk 1.4.1.  The
>exception is a:
>
>java.lang.reflect.InvocationTargetException
>caused by:
>java.lang.UnsatisfiedLinkError.
>
>Any suggestions?
>
>
>
>
>
>.
>
>  
>


Reply via email to