Re: I can't stand the "UnsatisfiedLinkErrors" anymore withTomcat 4.0.1!

2002-02-12 Thread Anil Bhagwat

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 <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Tomcat Users List <[EMAIL PROTECTED]>
>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
> >
> > >>> [EMAIL PROTECTED] 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:   
>For additional commands: 
>Troubles with the list: 
>




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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Help !!! JNI & Tomcat (UnSatisfiedLinkError exception)

2002-02-04 Thread Anil Bhagwat

I tried all these options. But, unfortunately, it didn't resolve the issue. 
I think Tomcat does find the DLL, since if I remove DLL from \winnt\system32 
folder I get a different error meesage. My guess is to run JNI under Tomcat, 
certain security seetings need to be configured. Does anyone know of this ? 
Any help would be great.

thanks

- Anil


>From: "Brian Adams" <[EMAIL PROTECTED]>
>Reply-To: <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: RE: Help !!! JNI & Tomcat (UnSatisfiedLinkError exception)
>Date: Wed, 30 Jan 2002 20:31:14 -0600
>
>Tomcat must not look in the \winnt\system32 directory.
>put the dll in the same directory as the class file.
>If you have tomcat starting as a service, try putting the dll in the
>%TOMCAT_HOME% directory eg. C:\tomcat
>lastly try putting the dll in %TOMCAT_HOME%\bin directory.
>goodluck,
>B
>
>-Original Message-
>From: Anil Bhagwat [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, January 30, 2002 4:35 PM
>To: [EMAIL PROTECTED]
>Subject: Help !!! JNI & Tomcat (UnSatisfiedLinkError exception)
>
>
>Hi,
>
>I have been trying to use JNI on Win2K using tomcat 4.0. I am running into 
>a
>problem.
>
>I keep getting UnSatisfiedLinkError exception. This doesn't happen when I
>execute the JNI from a sample JAVA application. I have placed the DLL under
>\winnt\system32 directory. The DLL is a C++ COM DLL compiled using MS 
>Visual
>C++ 6.0. I tried using a C++ (no COM) DLL and a C DLL but no success.
>
>I tried creating just a simple function that doesn't accept any parameters 
>&
>doesn't return any value. But, still it doesn't work. So, the problem is
>unlikely to have with the param types etc.
>
>I tried this on several versions of Tomcat but no success. I think the app
>finds the DLL correctly but can't find the method within correctly. I
>suspect this has something to do with Tomcat configuration (security ??).
>
>Has anyone seen this problem before ? While browsing thru' archives, I saw
>quite few people have run into this issue, but didn't notice any 
>resolution.
>I would appreciate any help on this issue.
>
>thanks
>
>- Anil
>
>_
>Join the world’s largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Help !!! JNI & Tomcat (UnSatisfiedLinkError exception)

2002-01-30 Thread Anil Bhagwat

Hi,

I have been trying to use JNI on Win2K using tomcat 4.0. I am running into a 
problem.

I keep getting UnSatisfiedLinkError exception. This doesn't happen when I 
execute the JNI from a sample JAVA application. I have placed the DLL under 
\winnt\system32 directory. The DLL is a C++ COM DLL compiled using MS Visual 
C++ 6.0. I tried using a C++ (no COM) DLL and a C DLL but no success.

I tried creating just a simple function that doesn't accept any parameters & 
doesn't return any value. But, still it doesn't work. So, the problem is 
unlikely to have with the param types etc.

I tried this on several versions of Tomcat but no success. I think the app 
finds the DLL correctly but can't find the method within correctly. I 
suspect this has something to do with Tomcat configuration (security ??).

Has anyone seen this problem before ? While browsing thru' archives, I saw 
quite few people have run into this issue, but didn't notice any resolution. 
I would appreciate any help on this issue.

thanks

- Anil

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: