Hi,
I am attempting to access a Cloudscape DB.
The driver is com.ibm.db2j.jdbc.DB2jDriver and this class is present in the relevant
jar file which is in CLASSPATH.
My web.xml file contains the following:
<init-param>
<param-name>driver</param-name>
<param-value>com.ibm.db2j.jdbc.DB2jDriver</param-value>
</init-param>
and my servlet attempts to load it thus:
String driver = getServletConfig().getInitParameter("driver");
if (driver == null) {
throw new UnavailableException("Driver not specified.");
}
try {
Class.forName(driver);
} catch (ClassNotFoundException cnfe) {
throw new UnavailableException("Driver <" + driver
+ "> not found in the classpath.");
}
The ClassNotFoundException is thrown when the servlet is called.
Any ideas?
Regards
Andy Wickson