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.init(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]



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.init(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]



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 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'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: DB2 App Driver?

2002-02-05 Thread Reynir Hübner

well, I agree, just to make things clear : 

you must have the DB2 client set up (it´s a type 2 driver), for the
[app], but not for the net driver.
the [net] is a type 4.

But on the other hand, I know of people that have had to deal with some
problems when using the [net] driver, that do not occure when using the
[app] driver. Then again I dont know of any specific problems.

hope it helps

-reynir

 -Original Message-
 From: Gregor Kovaè [mailto:[EMAIL PROTECTED]]
 Sent: 5. febrúar 2002 06:56
 To: Tomcat Users List
 Subject: Re: DB2 App Driver?
 
 
 Hi!
 
 I have to say this is not true.
 All you need on your client is db2java.zip file and you have 
 to use net 
 driver instead on app.
 You don't need the DB2 client as far as I know.
 
 Best regards,
  Kovi
 
 At 19:57 4.2.2002 +, you wrote:
 Hi Derek,
 
 we use the app-driver to connect to DB2 with Tomcat 4.0.
 
 If your application runs on another maschine than DB2, you 
 must install a
 DB2-Client. Without that you can't use the app-driver.
 
 If your application runs on the same maschine than DB2, you 
 must tell Tomcat
 where your driver is. To do that, you can either change 
 Tomcat-Classpath or
 copy the driver to a directory in the Tomcat-Classpath. But 
 on our system,
 the latter didn't run.
 
 Anja
 
 
 --
 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]
 
 

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




DB2 App Driver?

2002-02-04 Thread Derek Holden

Hello,

Anyone have any issues getting applications to talk to DB2 using the app 
drivers? Searching the list saw that Tomcat wouldn't read the drivers 
zipped, jar'd them up and it solved that problem. However I can only talk 
to the local database using the net drivers. Any suggestions?


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




RE: DB2 App Driver?

2002-02-04 Thread Reynir Hübner

I evaluated the app driver few days ago, also the net driver.

check this page out before you start trying to use it : 
http://www-4.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/docu
ment.d2w/report?fn=1000797

I use merant (datadirect-technologies.com) driver now.
The problem you are dealing with has to do with your client setup.
You can solve it by using the command line processor, you need to map
your database into the database directory. 

hope it helps
  -reynir



 -Original Message-
 From: Derek Holden [mailto:[EMAIL PROTECTED]]
 Sent: 4. febrúar 2002 16:00
 To: [EMAIL PROTECTED]
 Subject: DB2 App Driver?
 
 
 Hello,
   
 Anyone have any issues getting applications to talk to DB2 
 using the app 
 drivers? Searching the list saw that Tomcat wouldn't read the drivers 
 zipped, jar'd them up and it solved that problem. However I 
 can only talk 
 to the local database using the net drivers. Any suggestions?
 
 
 --
 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]




Re: DB2 App Driver?

2002-02-04 Thread Anja Falkner

Hi Derek,

we use the app-driver to connect to DB2 with Tomcat 4.0.

If your application runs on another maschine than DB2, you must install a
DB2-Client. Without that you can't use the app-driver.

If your application runs on the same maschine than DB2, you must tell Tomcat
where your driver is. To do that, you can either change Tomcat-Classpath or
copy the driver to a directory in the Tomcat-Classpath. But on our system,
the latter didn't run.

Anja


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




Re: DB2 App Driver?

2002-02-04 Thread Gregor Kovaè

Hi!

I have to say this is not true.
All you need on your client is db2java.zip file and you have to use net 
driver instead on app.
You don't need the DB2 client as far as I know.

Best regards,
 Kovi

At 19:57 4.2.2002 +, you wrote:
Hi Derek,

we use the app-driver to connect to DB2 with Tomcat 4.0.

If your application runs on another maschine than DB2, you must install a
DB2-Client. Without that you can't use the app-driver.

If your application runs on the same maschine than DB2, you must tell Tomcat
where your driver is. To do that, you can either change Tomcat-Classpath or
copy the driver to a directory in the Tomcat-Classpath. But on our system,
the latter didn't run.

Anja


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