tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil Bhagwat" <anilb_...@hotmail.com>
Subject Re: I can't stand the "UnsatisfiedLinkErrors" anymore withTomcat 4.0.1!
Date Tue, 12 Feb 2002 17:23:55 GMT
I agree with the opinion expressed in the email thread below that it is 
quite frustrating to make JNI work running under Tomcat. I keep seeing that 
"UnsatisfiedLink Error". I have, for the time being, given up on that issue.

- Anil

>From: jean-frederic clere <jfrederic.clere@fujitsu-siemens.com>
>Reply-To: jfrederic.clere@fujitsu-siemens.com
>To: Tomcat Users List <tomcat-user@jakarta.apache.org>
>Subject: Re: I can't stand the "UnsatisfiedLinkErrors" anymore withTomcat 
>4.0.1!
>Date: Tue, 12 Feb 2002 12:35:03 +0100
>
>Larry Meadors wrote:
> >
> > >>Can the class loader used to load the classes in the web app load
> > native libraries...
> > I think that classes in the web app can call native methods, but I am
> > by no stretch of the imagination an expert on this. When I ran the
> > Oracle OCI JDBC driver (which uses native code) it worked in the
> > WEB-INF/lib directory or in the common/lib directory. I had a separate
> > issue when reloading classes, but I think that was Oracle specific.
> >
> > >>Do I really need to load my class with the native methods...how?
> > I also think that classes in the $CATALINA_HOME/common/lib get loaded
> > by the "common" classloader.
> >
> > >>I am a big fan of open source, but the troubles I am having...
> > I feel your pain. Best of luck getting this going, be sure to share
> > when you do to spare the next poor bugger. ;-)
> >
> > Larry
> >
> > >>> jmboone@telocity.com 02/08/02 08:29PM >>>
> > Hi All,
> >
> > After more that a week of messing with it, I'm convinced there is no
> > way to call native methods within Tomcat. I have read the class loader
> > INFO file 100 times, searched and read the list serve archives for
> > hours, followed all the suggestions found within those messages, and
> > still I receive "UnsatisfiedLinkErrors" whenever I attempt to run native
> > methods.
> >
> > Facts:
> >
> > * I can execute the methods with no problems when run from the command
> > line, but I get "UnsatisfiedLinkErrors" running under Tomcat 4.0.1.
> > Hummm...
>
>Without more information it sounds difficult to help?
>Have you try System.load() instead of loadLibrary()?
>
> >
> > Questions:
> >
> > * Can the class loader used to load the classes in the web app load
> > native libraries with System.loadLibrary? Some list serve messages say
> > no, others suggest yes.
> > * Do I really need to load my class with the native methods in the
> > "Common" class loader?  If so, how? None of the methods I have tried
> > work.
> > * Basically, how do I need to sweet talk Tomcat to make it execute my
> > native methods?
> >
> > I'm really frustrated and desperate!  If anyone has made this work,
> > please share your wisdom. I am a big fan of open source, but the
> > troubles I am having really make me wish I could call tech support at
> > some software company!  Any suggestions are welcome.  Thanks..
> >
> > Cheers,
> >
> > Jim Boone
>
>--
>To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
>Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message