tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Wickson" <>
Subject Re: Loading jdbc driver
Date Thu, 24 Oct 2002 09:33:12 GMT
Thanks for the idea Sean.  I tried putting the jar file under my WEB-INF\lib
directory but get the same error.
If I then try to delete this file with TC running I can't because TC has
locked it, so this would indicate that TC thinks it found something it

Andy Wickson

----- Original Message -----
From: "Sean Reilly" <>
To: "Tomcat Users List" <>
Sent: Wednesday, October 23, 2002 10:11 PM
Subject: RE: Loading jdbc driver

by the all caps in CLASSPATH, I assume that you mean the CLASSPATH
environment variable.
Try putting the classes/jar in the WEB-INF/lib directory of the webapp

Sean Reilly
Programmer, Point2 Technologies, Inc.
(306) 955-1855 <>

-----Original Message-----
From: Andy Wickson []
Sent: Wednesday, October 23, 2002 9:21 AM
To: Tomcat Users List
Subject: Loading jdbc driver


I am attempting to access a Cloudscape DB.
The driver is and this class is present in the
relevant jar file which is in CLASSPATH.

My web.xml file contains the following:

and my servlet attempts to load it thus:

String driver = getServletConfig().getInitParameter("driver");

    if (driver == null) {
      throw new UnavailableException("Driver not specified.");

    try {
    } catch (ClassNotFoundException cnfe) {
      throw new UnavailableException("Driver <" + driver
                                     + "> not found in the classpath.");

The ClassNotFoundException is thrown when the servlet is called.

Any ideas?

Andy Wickson

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

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

View raw message