tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew R Feller" <>
Subject RE: Tomcat DB2 JDBC issue
Date Thu, 15 Nov 2007 18:58:59 GMT
Hey Chuck,

We had the same idea about the java.library.path property, too.  After
more fiddling around, I think we figured out what is going on.

1st: Set JAVA_OPTS to include java.library.path to include the
SQLLIB/JAVA directory of DB2 Connect

2nd: Removed the DB2java.jar from the web application and have it in

I think this was a combination of different classloaders loading the JAR
and the lack of library path.  I am still working on it to see if
anything else happens as a result of this.


Andrew R Feller, Analyst
Subversion Administrator
University Information Systems
Louisiana State University
(office) 225.578.3737

-----Original Message-----
From: Caldarale, Charles R [] 
Sent: Thursday, November 15, 2007 11:22 AM
To: Tomcat Users List
Subject: RE: Tomcat DB2 JDBC issue

> From: Andrew R Feller [] 
> Subject: RE: Tomcat DB2 JDBC issue
> By blanking out the environment variable for PATH and 
> restarting Tomcat, the application, which was being 
> initialized successfully, now fails in the same way 
> Tomcat was failing originally, so we theorize that 
> Tomcat might be having difficulties finding the DB2
> Connect binaries/executables.

Maybe, but the error message is one of those catch-all types used to
cover a variety of problems.

You can check the value of the java.library.path system property in a
running Tomcat with Lambda Probe or JConsole; make sure it includes the
location of the .dll you need.

Is the DB2java.jar in more than one location in the classloader
hierarchy?  (E.g., in both Tomcat's lib directory and the app's

Are there any other exceptions thrown besides the "No suitable driver"
one?  I would have expected a CNFE or something like that as a root

 - Chuck

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message