Re: JNI error under tomcat: java.lang.UnsatisfiedLinkError

2010-07-05 Thread dennis ch
objects.; } } 2010/7/3 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis, On 7/2/2010 3:46 AM, dennis ch wrote: However, when I deploy it as a web service (tomcat 6.0.26 + axis2 1.5.1 + eclipse jee helios) to call the native method

Re: JNI error under tomcat: java.lang.UnsatisfiedLinkError

2010-07-05 Thread dennis ch
, dennis ch dennis.ch2...@gmail.com wrote: Hi, I have a java class (eval.java) that invokes a native method in an so file (libmodel.so, using SWIG 1.3.29 to generate JNI code/wrapper and compiled the library). I can use System.loadLibrary() to load the libmodel.so without any error

Re: JNI error under tomcat: java.lang.UnsatisfiedLinkError

2010-07-05 Thread dennis ch
to be executed more than once, in which case loadLibrary will be called more than once (and so will the native initModels). Not sure what the effects are and if it's related to your problem but it's a good idea to avoid trouble by fixing it. Shay On Fri, Jul 2, 2010 at 3:46 AM, dennis ch

JNI error under tomcat: java.lang.UnsatisfiedLinkError

2010-07-02 Thread dennis ch
Hi, I have a java class (eval.java) that invokes a native method in an so file (libmodel.so, using SWIG 1.3.29 to generate JNI code/wrapper and compiled the library). I can use System.loadLibrary() to load the libmodel.so without any error (-Djava.library.path=/usr/lib), and the native method