----------------------------------------------------------------
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!!!
----------------------------------------------------------------
I am in the process of setting up a JSERV 1.1b3 environment on NT 4
using IBM's HTTP Server 1.3.6 which is actually Apache (1.3.7-dev I
think) under the covers. I'm pretty sure I understand zones and the
wrapper classpath, but I am having real problems trying to access some
JNI classes. I think that I have figured out that the JNI classes must
be in the wrapper classpath so that they are loaded by the system class
loader. I am successfully loading the classes, but I don't think they
are able to load their JNI libraries (dll's on NT) properly, because
things don't appear to be working properly. Currently, the bulk of my
code (all of which really depends on using some important JNI classes)
is in both a directory tree and a jar file, both of which I've added to
the wrapper.classpath. My servlets are in a zone and the code is in a
repository. The servlets import the classes that use the JNI, and they
are in fact able to load the classes (I assume via the system class
loader). However, when I run a very simple test case where a JNI class
is loaded, I am able to access methods and members of the class, but the
native code never seems to be invoked. This implies to me that the
class was loaded successfully, but when it tried to load its native
library, that failed. Our code catches the exceptions that may be
thrown by the loadLibrary() call. This leads me to a second question.
How the heck do I get any debug information out of my servlets or the
classes they load. When we were trying to get this running under
WebSphere, we were able to find output to System.out in a log file
somewhere. I have not been able to figure out if or how to do this
under JSERV.
I sure hope that the answer to my problem is *not* that JNI can't be
used. If so, I will need to use something beside JSERV -- any
suggestions? I really don't want to use WebSphere. It is far too
complex and I still don't have a good handle on what it takes to set it
up.
If my questions have been answered in the past, please forgive me. I
haven't had the time to figure out how to search the archives (if there
is a way), and I didn't see specific enough answers in the FAQ.
Thanks,
Danny Levenson
[EMAIL PROTECTED]
--
--------------------------------------------------------------
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]