---------------------------------------------------------------- BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> WHEN YOU POST, include all relevant version numbers, log files, and configuration files. Don't make us guess your problem!!! ---------------------------------------------------------------- Dear friends, Please refer to the forwarded mail for an explanation of the original problem. I finally found the solution myself. The problem what that I was using Blackdown's JDK1.1.8. I switched to JDK1.2.2 and the problem is solved. Best regards, Joaquin Joaquin Rapela Staff Software Engineer IBM Almaden Research Center ---------------------- Forwarded by Joaquin Rapela/Almaden/IBM on 04/14/2000 07:52 PM --------------------------- Joaquin Rapela 04/13/2000 12:27 PM To: [EMAIL PROTECTED] cc: From: Joaquin Rapela/Almaden/IBM@ibmus Subject: Native Methods && UnsatisfiedLinkError ??? Hello everybody, I have a class with a native method and when I call this native method from a servlet I receive the "famous" UsatisfiedLinkError. mod_jserv.log follows: [13/04/2000 11:57:28:517] (ERROR) ajp12: Servlet Error: java.lang.UnsatisfiedLinkError: login: login[13/04/2000 11:57:28:526] (ERROR) an error returned handling request via protocol "ajpv12" - I have put the shared library that implements this native method in /usr/lib, - LD_LIBRARY_PATH points to /usr/lib, - jserv.properties contains the line: # Copies all environment from caller to Java Virtual Machine# Syntax: wrapper.env.copyall=[true|false] (boolean)# Default: falsewrapper.env.copyall=true Some Diagnostics ++++++++++++++++ - When I call this method from a standalone application it works fine, - When I delete the shared library from /usr/lib I receive the following (different) error: [12/04/2000 20:28:12:737] (ERROR) ajp12: Servlet Error: java.lang.UnsatisfiedLinkError: no afsmgr in shared library path: no afsmgr in shared library path[12/04/2000 20:28:12:737] (ERROR) an error returned handling request via protocol "ajpv12" So, I believe, that the JVM can actually load the shared library but cannot find the native method in this library. So it could be that the signature of the native method is wrong; but why does the standalone application (using the same JVM) work fine? - If I change this method to be NON native the servlet work fine. My System ++++++++++ RedHat 6.1 Apache 1.3.12 JSDK2.0 JServ1.1.1b1 JDK118_v1 Any help will be strongly appreciated. Thanks in advance, Joaquin Joaquin Rapela Staff Software Engineer IBM Almaden Research Center -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED]
