----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Kevin L McWhirter wrote:
>
> I have been experiencing the same thing (and the reason I joined this
> mailing list :). I tried the following:
> 1. set wrapper.env=LD_LIBRARY_PATH=/path/to/lib/dir
> 2. copy the library to "_g" (i.e., libMyLib_g.so)
> 3. Start JVM manually with wrapper script the expliciltly sets
> LD_LIBRARY_PATH
> 4. Put the path in /etc/ld.so.conf and run ldconfig -v
>
> All of these approaches failed.
>
> At this point I am wondering if it has something to do with the new
> "sandbox" code. My next step will be to start the JVM with strace and
> parse through the output looking for hints. I will probably do that
> sometime this weekend.
>
> But, does anybody else have any ideas?
>
> BTW, I am using RedHat 6.1, the IBM JDK 1.1.8 and the servlet works fine
> with servletrunner! Loads the JNI library just fine everytime!
>
> Thanks,
> Kevin
>
> Jerome, please email me if you get this figured out. I will do the same
> should I get there first (of course I will CC a copy to this list as well).
>
> Jerome Martin wrote:
[snip]
Well, I got it working. But I am not sure what I have done to myself. What
I did was this:
(1) Put the class that loads the native library in a separate jar file.
(2) add a wrapper.classpath=newjarfile.jar line in jserv.properties
(see http://java.apache.org/faq/fom-serve/cache/285.html for the reason why --
JNI libraries MUST be loaded by the system loader -- NOT the ApacheJserv
adaptive class-loader family.)
After doing this I was getting NoClassDefFound errors. So I also did:
(3) put a wrapper.classpath=originaljarfile.jar line in jserv.properties
(4) left the repositories= entry alone
(5) turned OFF autoreload.classes and autoreload.files for this zone
So, how can I expect the system to act when I have 2000+ users banging on
these servlets? Am I hampering Apache-Jserv's operation? Is there a better
solution?
Thanks for all the response. This is REALLY a great mailing list!
Kevin
--
--------------------------------------------------------------
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]