I have a Class Not Found Exception error I am not certain how to fix.

I have a file called jt400.jar in my CATALINA_HOME/common/lib .  My
servlets access the classes in this jar with no problem.

One of the classes in this jar is my JDBC Driver class.  Again it works
fine from a servlet making direct connections using this driver.  However
when trying to use the connect pooling, this same driver can not be
accessed by the JNDI services.  My servlet gets the error Cannot load JDBC
driver class 'com.ibm.as400.access.AS400JDBCDriver()' , but tomcat's stdout
records that the real problem is:

Cannot load JDBC driver class 'com.ibm.as400.access.AS400JDBCDriver()'
java.lang.ClassNotFoundException: com/ibm/as400/access/AS400JDBCDriver()
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:140)
        at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:523)
        at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:312)
        at org.apache.jsp.jsp.JDBCTest2_jsp.
_jspService(JDBCTest2_jsp.java:56)

Why can my servlets find the driver, but the connection pool cannot?





--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to