Re: UnsatisfiedLinkError - JNI

2004-07-07 Thread Josef Henryson
See bottom of message...
On Jul 7, 2004, at 21:33, Tim Penhey wrote:
Josef Henryson wrote:
Hi!
I get an UnsatisfiedLinkError when trying to 
System.loadLibrary("foo") from a class instantiated within a Servlet. 
The library libFoo.jnilib is in a folder within java.library.path and 
the class loading it is inside a JAR in $CATALINA_HOME/shared/lib. 
Beside the JNI library is a native library libBar.dylib.

I'm running Tomcat 5.0.25 on Mac OS X 10.3.4
Here's the exception:
UnsatisfiedLinkError: 
/Users/henryson/Library/Java/Extensions/libFoo.jnilib:
java.lang.UnsatisfiedLinkError: 
/Users/henryson/Library/Java/Extensions/libFoo.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)

I have tried loading the library from a small Java application 
outside the Tomcat server and it works fine when all 
classes/libraries are within the same folder.

Of course I have searched for a solution on Google and I have also 
search old entries on this list (in an archive on a website) but 
there just don't seem to be a solution available out there... =(

Anyone that have a clue? I would be VERY thankful =)
Regards,
Josef Henryson
Well given the fact that the JNI library works fine when in a stand 
alone environment, it sounds like a load path problem.  I'm not sure 
what OS X uses, but on unix it is the LD_LIBRARY_PATH, or on Windows 
the PATH.  Try and get the code to output the environment before it 
does the load library call and make sure that the locations for all 
the dependant libraries are there.

Tim, thank you for your advice.
I tried setting java.library.path before, but when setting 
LD_LIBRARY_PATH and DYLD_LIBRARY_PATH (Mac OS X/Darwin) it seems to 
work!! :-)

However, it only works when I'm running Tomcat from the startup script 
from command line. When I try to start Tomcat from Eclipse plugin, it 
still doesn't find the library =( Which makes it harder to debug...

Anyone familiar with setting library paths to be found from 
Eclipse/Tomcat plugin??

TIA,
Josef
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: UnsatisfiedLinkError - JNI

2004-07-07 Thread CAGALLOM
no email please

-Mensaje original-
De: Tim Penhey [mailto:[EMAIL PROTECTED]
Enviado el: Miércoles 7 de Julio de 2004 14:33
Para: Tomcat Users List
Asunto: Re: UnsatisfiedLinkError - JNI


Josef Henryson wrote:

> Hi!
>
> I get an UnsatisfiedLinkError when trying to System.loadLibrary("foo") 
> from a class instantiated within a Servlet. The library libFoo.jnilib 
> is in a folder within java.library.path and the class loading it is 
> inside a JAR in $CATALINA_HOME/shared/lib. Beside the JNI library is a 
> native library libBar.dylib.
>
> I'm running Tomcat 5.0.25 on Mac OS X 10.3.4
>
> Here's the exception:
>
> UnsatisfiedLinkError: 
> /Users/henryson/Library/Java/Extensions/libFoo.jnilib:
> java.lang.UnsatisfiedLinkError: 
> /Users/henryson/Library/Java/Extensions/libFoo.jnilib:
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
> at java.lang.Runtime.loadLibrary0(Runtime.java:788)
> at java.lang.System.loadLibrary(System.java:834)
>
> I have tried loading the library from a small Java application outside 
> the Tomcat server and it works fine when all classes/libraries are 
> within the same folder.
>
> Of course I have searched for a solution on Google and I have also 
> search old entries on this list (in an archive on a website) but there 
> just don't seem to be a solution available out there... =(
>
> Anyone that have a clue? I would be VERY thankful =)
>
> Regards,
>
> Josef Henryson
>
Well given the fact that the JNI library works fine when in a stand 
alone environment, it sounds like a load path problem.  I'm not sure 
what OS X uses, but on unix it is the LD_LIBRARY_PATH, or on Windows the 
PATH.  Try and get the code to output the environment before it does the 
load library call and make sure that the locations for all the dependant 
libraries are there.

Hope that helps,
Tim


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AVISO LEGAL:

Esta información es privada y confidencial y está dirigida únicamente a su 
destinatario. Si usted no es el destinatario original de este mensaje y por este medio 
pudo acceder a dicha información por favor elimine el mensaje. La distribución o copia 
de este mensaje está estrictamente prohibida. Esta comunicación es sólo para 
propósitos de información y no debe ser considerada como propuesta, aceptación ni como 
una declaración de voluntad oficial de REPSOL YPF S.A. y/o subsidiarias y/o afiliadas. 
La transmisión de e-mails no garantiza que el correo electrónico sea seguro o libre de 
error. Por consiguiente, no manifestamos que esta información sea completa o precisa. 
Toda información está sujeta a alterarse sin previo aviso. 

This information is private and confidential and intended for the recipient only. If 
you are not the intended recipient of this message you are hereby notified that any 
review, dissemination, distribution or copying of this message is strictly prohibited. 
This communication is for information purposes only and shall not be regarded neither 
as a proposal, acceptance nor as a statement of will or official statement from REPSOL 
YPF S.A. and/or subsidiaries and/or affiliates. Email transmission cannot be 
guaranteed to be secure or error-free. Therefore, we do not represent that this 
information is complete or accurate and it should not be relied upon as such. All 
information is subject to change without notice.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: UnsatisfiedLinkError - JNI

2004-07-07 Thread Tim Penhey
Josef Henryson wrote:
Hi!
I get an UnsatisfiedLinkError when trying to System.loadLibrary("foo") 
from a class instantiated within a Servlet. The library libFoo.jnilib 
is in a folder within java.library.path and the class loading it is 
inside a JAR in $CATALINA_HOME/shared/lib. Beside the JNI library is a 
native library libBar.dylib.

I'm running Tomcat 5.0.25 on Mac OS X 10.3.4
Here's the exception:
UnsatisfiedLinkError: 
/Users/henryson/Library/Java/Extensions/libFoo.jnilib:
java.lang.UnsatisfiedLinkError: 
/Users/henryson/Library/Java/Extensions/libFoo.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)

I have tried loading the library from a small Java application outside 
the Tomcat server and it works fine when all classes/libraries are 
within the same folder.

Of course I have searched for a solution on Google and I have also 
search old entries on this list (in an archive on a website) but there 
just don't seem to be a solution available out there... =(

Anyone that have a clue? I would be VERY thankful =)
Regards,
Josef Henryson
Well given the fact that the JNI library works fine when in a stand 
alone environment, it sounds like a load path problem.  I'm not sure 
what OS X uses, but on unix it is the LD_LIBRARY_PATH, or on Windows the 
PATH.  Try and get the code to output the environment before it does the 
load library call and make sure that the locations for all the dependant 
libraries are there.

Hope that helps,
Tim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


UnsatisfiedLinkError - JNI

2004-07-07 Thread Josef Henryson
Hi!
I get an UnsatisfiedLinkError when trying to System.loadLibrary("foo") 
from a class instantiated within a Servlet. The library libFoo.jnilib 
is in a folder within java.library.path and the class loading it is 
inside a JAR in $CATALINA_HOME/shared/lib. Beside the JNI library is a 
native library libBar.dylib.

I'm running Tomcat 5.0.25 on Mac OS X 10.3.4
Here's the exception:
UnsatisfiedLinkError: 
/Users/henryson/Library/Java/Extensions/libFoo.jnilib:
java.lang.UnsatisfiedLinkError: 
/Users/henryson/Library/Java/Extensions/libFoo.jnilib:
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
	at java.lang.Runtime.loadLibrary0(Runtime.java:788)
	at java.lang.System.loadLibrary(System.java:834)

I have tried loading the library from a small Java application outside 
the Tomcat server and it works fine when all classes/libraries are 
within the same folder.

Of course I have searched for a solution on Google and I have also 
search old entries on this list (in an archive on a website) but there 
just don't seem to be a solution available out there... =(

Anyone that have a clue? I would be VERY thankful =)
Regards,
Josef Henryson


UnsatisfiedLinkError

2004-01-06 Thread Annette Strupp-Adams
When my Sun machine is rebooted, it automatically starts Tomcat (version 4.1.18) 
and Apache in a start-up script.

After the machine has rebooted, and I try to instantiate an object that accesses 
 a database, I get the following error:

UnsatisfiedLinkError:
no osjisc in java.library.path

It is looking for libjava.so.  I created a symbolic link to libjava.so 
in shared/classes/ and in the common/classes dir, but I keep getting the error.

If I restart Tomcat from the command line, the error does not appear and the 
servlet works fine.

I have tried to set the -Djava.library.path in Tomcat's startup.sh script, but 
that did not fix the problem.  I read the class loader html.

If anyone knows a FAQ or other source where I can find out where to tell Tomcat 
the location of libjava.so, I would appreciate it.

Thanks,

Annette

Annette Strupp-Adams
Senior Systems Analyst
[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: UnsatisfiedLinkError with DB2 app driver and JDK1.4.1

2003-06-11 Thread Jochen Schweflinghaus

I'm using JDK1.4.1_02 and 1.3.1_02 both from SUN. What do you mean by how
your classes are organized ?
I'm failing to run a webapp in tomcat using the DB2 app driver when setting
JAVA_HOME to the JDK1.4.1. There is no problem when JAVA_HOME is set to
JDK/JRE 1.3.1. Nothing else was changed except for the JAVA_HOME setting.
The code was compiled with JDK1.4.1, though.
Running a simple standalone java class from command line using the same jar
(no problem with a wrong jar file) files from the same shell (not missed to
execute db2profile), I have no problem with either JDK or DB2 driver.

I am Thankful for any hint .


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: UnsatisfiedLinkError with DB2 app driver and JDK1.4.1

2003-06-11 Thread Chong Yu Meng
Which JDK are you using ? IBM's Java or Sun's Java ? There is a 
difference in the way the classes are organized.

Regards,
pascal chong
Jochen Schweflinghaus wrote:

I use a link named db2java.jar in $CATALINA_HOME/common/lib referring to
the db2java.zip (JDBC 1) file comming along with DB2. For the Standalone
java program I include this link into the classpath. Neiter of my two Java
installations have a db2java.zip installed in their extensions.
Also the DB2 net driver is working fine (after changing the Database URL,
of course) with both JVMs.
It's really misterious. Do you have any other idea ?
I Thank you for your reply.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: UnsatisfiedLinkError with DB2 app driver and JDK1.4.1

2003-06-11 Thread Jochen Schweflinghaus
I use a link named db2java.jar in $CATALINA_HOME/common/lib referring to
the db2java.zip (JDBC 1) file comming along with DB2. For the Standalone
java program I include this link into the classpath. Neiter of my two Java
installations have a db2java.zip installed in their extensions.
Also the DB2 net driver is working fine (after changing the Database URL,
of course) with both JVMs.
It's really misterious. Do you have any other idea ?

I Thank you for your reply.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: UnsatisfiedLinkError with DB2 app driver and JDK1.4.1

2003-06-11 Thread Roberts, Eric
Where is the jar file containing your db drivers?

Sounds as though you have it in your jdk1.3.1 installation - it should be in 
common/lib.

HTH

-Original Message-
From: Jochen Schweflinghaus [mailto:[EMAIL PROTECTED]
Sent: 11 June 2003 11:39
To: [EMAIL PROTECTED]
Subject: UnsatisfiedLinkError with DB2 app driver and JDK1.4.1


Hi,

I am SUCCESSFULLY running a web Application with the following environment:
- Redhat Linux 7.1
- DB2/LINUX 7.2.3 Database
- Tomcat 4.0.4
- JRE 1.3.1

But when just I switch $JAVA_HOME variable for tomcat to use JDK 1.4.1
instead of
JRE 1.3.1 I get a
java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in
java.library.path
at COM.ibm.db2.jdbc.app.DB2Driver.(DB2Driver.java:241)
...
when trying to get a Database connection though the
COM.ibm.db2.jdbc.app.DB2Driver.
Getting connections via the COM.ibm.db2.jdbc.net.DB2Driver still works, so
that I
suspected an uncorrect setting of LD_LIBRARY_PATH or the java.library.path
property
respectively. But this is NOT the case, the path to libdb2jdbc.so is
included there.
And amazingly a standalone java class I wrote for testing is running fine
with any
combinations of JVMs and JDBC drivers. I had all tries from the same shell
and used
the same jar files.

So it seems to be a Problem with the JVM version 1.4.x and tomcat. Any
hints about this ?
Does anyone out there experience similar problems ?

Appreciate any kind of help - Jochen.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



UnsatisfiedLinkError with DB2 app driver and JDK1.4.1

2003-06-11 Thread Jochen Schweflinghaus
Hi,

I am SUCCESSFULLY running a web Application with the following environment:
- Redhat Linux 7.1
- DB2/LINUX 7.2.3 Database
- Tomcat 4.0.4
- JRE 1.3.1

But when just I switch $JAVA_HOME variable for tomcat to use JDK 1.4.1
instead of
JRE 1.3.1 I get a
java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in
java.library.path
at COM.ibm.db2.jdbc.app.DB2Driver.(DB2Driver.java:241)
...
when trying to get a Database connection though the
COM.ibm.db2.jdbc.app.DB2Driver.
Getting connections via the COM.ibm.db2.jdbc.net.DB2Driver still works, so
that I
suspected an uncorrect setting of LD_LIBRARY_PATH or the java.library.path
property
respectively. But this is NOT the case, the path to libdb2jdbc.so is
included there.
And amazingly a standalone java class I wrote for testing is running fine
with any
combinations of JVMs and JDBC drivers. I had all tries from the same shell
and used
the same jar files.

So it seems to be a Problem with the JVM version 1.4.x and tomcat. Any
hints about this ?
Does anyone out there experience similar problems ?

Appreciate any kind of help - Jochen.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Connection to 8.1.7 Database Fails With JDBC/OCI8 Driver: UnsatisfiedLinkError

2002-07-04 Thread ahmet dalli

Hi,

I tried to connect to an Oracle8i(8.1.7.0.0) database
from a servlet using OCI Driver(8.1.7.1 for JDK 1.2).
A ServletException was thrown with a root cause of
java.lang.UnsatisfiedLinkError: get_env_handle. 

The same program runs without an error using thin
driver. I have Oracle8i client installed and i have
the ocijdbc8.dll in my PATH environment variable.
classes12.zip(renamed as classes12.jar for Tomcat) is
in %JAVA_HOME%\jre\lib\ext. Database server is up
and running, i have confirmed that ocijdbc8.dll could
be loaded by a test program using
"System.loadLibrary("ocijdbc8");". 

My platform : Windows2000 version5.0(Service Pack 2),
Oracle8i Client; Apache2.0.39 Web Server, Tomcat4.0.4
Servlet/JSP Container, J2SDK1.4.0, Oracle8i 8.1.7.1
JDBC/OCI Driver

Here is the code snippet that throws an exception
while trying to get a connection: 
DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());
conn =
DriverManager.getConnection("jdbc:oracle:oci8:@my_database","username","password");

I know that this version of OCI driver is for use with
JDK1.2, but what i try to do is a simple connect not
requiring any JDK1.4 features. So does this may be the
source of problem?

As far as i know, Oracle9i 9.2.0.1 JDBC/OCI Driver
supports jdk1.4. So, in order to be able to use
jdk1.4; I have to install Oracle9i Client for use
with OCI driver, I have to download Oracle9.2.01
JDBC/OCI driver with the necessary dll's, right?

What's more important is that; Will i be able to
connect to a Oracle8i(8.1.7) database?

Any suggestion/help will be appreciated


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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]>




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

2002-01-30 Thread Brian Adams

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]>




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:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




UnsatisfiedLinkError...no ocijdbc8 in java.library.path

2002-01-25 Thread Abhishek Pamecha

UnsatisfiedLinkError...no ocijdbc8 in java.library.path

I am developing a web application on tomcat 3.2.2 with Apache 1.2.22 on
Solaris 2.8.
I to make connections to Oracle database from this application using the
oci driver.
I am having this error whenever i use oci client for making a connection
from a servlet.
If I use a  thin client , obviously, no error comes  and the connection
is smoothly made.
Also, If I run a stand alone java program helloOracle.c it smoothly
makes connections 
using either the oci client or the thin client.

I have also set my LD_LIBRARY_PATH to ORACLE_HOME/lib which is Oracle
8.1.6
I also searched in the various libs of oracle but everywhere it has the
libocijdbc8.so instead of ocijdbc8.so

Is this a problem of unsetting of LD_LIBRARY_PATH when tomcat is
launched or is it a problem of some missing .so file
the LD_LIBRARY_PATH?

Any pointers where I am at fault.





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




Re: Tomcat 3.2 Mac OS 9.1 JNI UnsatisfiedLinkError

2001-10-19 Thread Allan Greenier

I use Webstar 4.4, which will interface (redirect url) with Tomcat.

I'm still trying to solve my link error, I'm wondering if anyone on this list
has insight into this. Tomcat 3.2:

I was advised to start tomcat with
-Djava.library.path={path to shared lib}
I looked through tomcat source, and nowhere does it consult
java.library.path
Doesn't that mean this will fail also?

I'm about to bite the bullet and talk to my shared lib app
with RMI, but I'm reluctant to.


Allan Greenier
Fluency llc.
[EMAIL PROTECTED]
www.fluencyllc.com


> Just curious...
> 
> What web server would you hook Tomcat up to...  It's not like Apache works
> on Mac OS 9.x...
>



Re: Tomcat 3.2 Mac OS 9.1 JNI UnsatisfiedLinkError

2001-10-18 Thread Darth Darknerd

Just curious...

What web server would you hook Tomcat up to...  It's not like Apache works
on Mac OS 9.x...




Re: Intermittent UnsatisfiedLinkError

2001-09-06 Thread Jonathan Eric Miller

John, I don't know if your JNI calls are in separate .jar files or in your
servlets themselves, but, if they are in separate .jar files, I found that
you can put those .jar files in CATALINA_HOME$/lib rather than in
CATALINA_HOME$/webapps/ROOT/WEB-INF/lib. When you do this, the .jar files
will only be loaded when Tomcat starts, instead of everytime your servlet is
reloaded. This is with Tomcat 4. Not sure about Tomcat 3.x.

Jon

- Original Message -
From: "Jonathan Eric Miller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Tomcat User List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 05, 2001 12:23 PM
Subject: Re: Intermittent UnsatisfiedLinkError


> John, I'm running into the same exact problem. Were you ever able to
resolve
> this? The reason it is intermittent is it happens when you update a
servlet
> and "auto servlet reloading" happens and you don't restart the server. The
> work around that I've been using is to just restart the server after
> updating a servlet. However, that is a pain, so, I want to find the real
> solution. I'm getting an error of "java.lang.UnsatisfiedLinkError: Native
> Library /opt/NSIT/lib/libccso_CCSOConnection.so already loaded in another
> classloader" in Tomcat 4. So, I'm going to look and see if there is a way
to
> check whether a library is loaded or not and possibly add some conditional
> code that I only call System.loadLibrary() when it isn't already loaded.
>
> Jon
>
>
> Intermittent UnsatisfiedLinkError
>
>
>
> From: John Doyle
> Subject: Intermittent UnsatisfiedLinkError
> Date: Sat, 21 Jul 2001 13:03:00 -0700
>
>
>
> Hello,
>  We are using tomcat 3.2.1 on RedHat 6.2.  Many of our servlets use
> Java native methods.
> The problem we are seeing is that our system runs OK for a while, then for
> some unknown reason
> we get UnsatisfiedLinkError on native methods that were running
previously.
> We are confident that the
> System.loadLibrary() calls are working.  (They are in a try-catch {} block
> w/ application-level tracing).
> We are calling System.loadLibrary() in a static initializer block of a
> class that is used by every servlet.
>  Could anyone advise me on how to debug this problem?  I could really
> use some advice on
> how to zero in on this.
>  Thanks in advance
>
> Regards,   John Doyle
>
> NAS Configuration Development
> Bldg 660/ E200,
> Research Triangle Park, NC 27709
> Phone: 919-254-7634
>
> No sense being a pessimist - it wouldn't work anyway.
>




Re: Intermittent UnsatisfiedLinkError

2001-09-05 Thread Jonathan Eric Miller

John, I'm running into the same exact problem. Were you ever able to resolve
this? The reason it is intermittent is it happens when you update a servlet
and "auto servlet reloading" happens and you don't restart the server. The
work around that I've been using is to just restart the server after
updating a servlet. However, that is a pain, so, I want to find the real
solution. I'm getting an error of "java.lang.UnsatisfiedLinkError: Native
Library /opt/NSIT/lib/libccso_CCSOConnection.so already loaded in another
classloader" in Tomcat 4. So, I'm going to look and see if there is a way to
check whether a library is loaded or not and possibly add some conditional
code that I only call System.loadLibrary() when it isn't already loaded.

Jon


Intermittent UnsatisfiedLinkError



From: John Doyle
Subject: Intermittent UnsatisfiedLinkError
Date: Sat, 21 Jul 2001 13:03:00 -0700



Hello,
 We are using tomcat 3.2.1 on RedHat 6.2.  Many of our servlets use
Java native methods.
The problem we are seeing is that our system runs OK for a while, then for
some unknown reason
we get UnsatisfiedLinkError on native methods that were running previously.
We are confident that the
System.loadLibrary() calls are working.  (They are in a try-catch {} block
w/ application-level tracing).
We are calling System.loadLibrary() in a static initializer block of a
class that is used by every servlet.
 Could anyone advise me on how to debug this problem?  I could really
use some advice on
how to zero in on this.
 Thanks in advance

Regards,   John Doyle

NAS Configuration Development
Bldg 660/ E200,
Research Triangle Park, NC 27709
Phone: 919-254-7634

No sense being a pessimist - it wouldn't work anyway.




UnsatisfiedLinkError : ocijdbc8 in shared Library path.

2001-08-01 Thread Mehul S Dave

ello 

   i am getting 
this unsatisfied error whenever i use 
servlet & in my servlet i am using 
JDBC for connecting to Oracle.
   i need to know 
the solution for this please do let me 
know . Also do i need to know the JDBC 
re-alm set-up in Tomcat server.

   
java.lang.UnsatisfiedLinkError: no 
ocijdbc8 in shared library path
   at 
java.lang.Runtime.loadLibrary(Runtime.java)
   at 
java.lang.System.loadLibrary(System.java)
   at 
oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java)
   at 
oracle.jdbc.driver.OracleConnection.(OracleConnection.java)
   at 
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java)
   at 
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
   at 
java.sql.DriverManager.getConnection(DriverManager.java:83)
   at 
java.sql.DriverManager.getConnection(DriverManager.java:126)
   at 
sdsi.sdsi.doGet(sdsi.java:29)
   at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
   at 
org.apache.tomcat.core.Handler.service(Handler.java:287)
   at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
   at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
   at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
   at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
   at 
java.lang.Thread.run(Thread.java)


*
Mehul S Dave
Scientific Officer, (STCS Dept.),
Tata Institute of Fundamental Research
Phone - 2152971 Extn - 2372
Mumbai .
webpage:- http://www.ecom.tifr.res.in/~mehul
*




Intermittent UnsatisfiedLinkError

2001-07-21 Thread John Doyle

Hello,
 We are using tomcat 3.2.1 on RedHat 6.2.  Many of our servlets use
Java native methods.
The problem we are seeing is that our system runs OK for a while, then for
some unknown reason
we get UnsatisfiedLinkError on native methods that were running previously.
We are confident that the
System.loadLibrary() calls are working.  (They are in a try-catch {} block
w/ application-level tracing).
We are calling System.loadLibrary() in a static initializer block of a
class that is used by every servlet.
 Could anyone advise me on how to debug this problem?  I could really
use some advice on
how to zero in on this.
 Thanks in advance

Regards,   John Doyle

NAS Configuration Development
Bldg 660/ E200,
Research Triangle Park, NC 27709
Phone: 919-254-7634

No sense being a pessimist - it wouldn't work anyway.




RE: UnsatisfiedLinkError (help)

2001-01-25 Thread Ciot, Thierry

The library is found but the signature for the method you are trying to call
does not exist.
Check the code.

Thierry

-Original Message-
From: Vishal Gharat [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 8:55 AM
To: tomcat
Subject: UnsatisfiedLinkError (help)


I am getting an exception "UnsatisfiedLinkError" whilst trying to call
the native method from a servlet.
Since the native method was in a separate class, I tried invoking the
method from a the main method from the same class. THIS WORKS PERFECTLY
FINE.

Intially, I thought it did not get the shared library. But, I tried
changing the name of the library in the "System.loadLibrary("mylib");"
And it did fail here. So  JVM not finding the library is not the case,
since the exception thrown in my case is when I invoke the native
method.

If anybody can help me on this issue...I would highly apprecaite that.

thanks
Vishal


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




UnsatisfiedLinkError (help)

2001-01-25 Thread Vishal Gharat

I am getting an exception "UnsatisfiedLinkError" whilst trying to call
the native method from a servlet.
Since the native method was in a separate class, I tried invoking the
method from a the main method from the same class. THIS WORKS PERFECTLY
FINE.

Intially, I thought it did not get the shared library. But, I tried
changing the name of the library in the "System.loadLibrary("mylib");"
And it did fail here. So  JVM not finding the library is not the case,
since the exception thrown in my case is when I invoke the native
method.

If anybody can help me on this issue...I would highly apprecaite that.

thanks
Vishal


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




UnsatisfiedLinkError

2001-01-24 Thread Vishal Gharat

I am getting an exception "UnsatisfiedLinkError" whilst trying to call
the native method from a servlet.
Since the native method was in a separate class, I tried invoking the
method from a the main method from the same class. THIS WORKS PERFECTLY
FINE.

Intially, I thought it did not get the shared library. But, I tried
changing the name of the library in the "System.loadLibrary("mylib");"
And it did fail here. So  JVM not finding the library is not the case,
since the exception thrown in my case is when I invoke the native
method.

If anybody can help me on this issue...I would highly apprecaite that.

thanks
Vishal


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]