tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shimon Crown <shimon.cr...@equipnet.co.il>
Subject Re: Classloading problems with JNI
Date Mon, 05 Aug 2002 14:08:07 GMT
Thanks -  but this makes things worse. I have set up log4j to append to my
own custom (JNI based) log classes that rely on these jars.
If I put them in $CATALINA_HOME\server\lib then log4j initialization fails
on this JNI based appender.

----- Original Message -----
From: Tathagat (London) <Tathagat2@DrKW.com>
To: 'Tomcat Users List' <tomcat-user@jakarta.apache.org>
Sent: Monday, August 05, 2002 4:45 PM
Subject: RE: Classloading problems with JNI


> Try $CATALINA_HOME\server\lib.
>
> -----Original Message-----
> From: Shimon Crown [mailto:shimon.crown@equipnet.co.il]
> Sent: Monday, August 05, 2002 15:15
> To: Tomcat Users List
> Subject: Classloading problems with JNI
>
>
> Tomcat 4.0.  J2SDK1.4 (Windows NT4).
>
> I have a couple of jars that use JNI. Originally I put these jars into the
> applications web-inf directory. Presumably these classes were only loaded
> once as everything went okay. The native code performs a callback into
> classes defined in these jars and has to create java classes defined by
me.
> Unfortunately the native dll is unable to locate these classes and I fail
in
> the native line
>
>     jclass variantClass = env->FindClass("MYCLASS");
>
> The same thing happens when I put the JNI jars in %CATALINA_HOME%/lib
which
> I believe is the correct place for them.
>
> I tried the same thing with jetty web server and found that JNI is unable
to
> find classes in the web-inf/lib directory. However if I included these JNI
> containing jars as part of the classpath that I gave when running the
Jetty
> server then it could find them.
>
> Any suggestions.
>
> Shimon Crown
>
>
> ----------------------------------------------------------------------
> If you have received this e-mail in error or wish to read our e-mail
> disclaimer statement and monitoring policy, please refer to
> http://www.drkw.com/disc/email/ or contact the sender.
> ----------------------------------------------------------------------
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message