Tomcat database connection pool doesn't work. Please help!
From: correro (bchen_at_365rainbow.com)
Date: 12/22/03
- Next message: correro: "Tomcat 5 Database Connection Pool problem"
- Previous message: Paul L: "Connection problem"
- Next in thread: David Rabinowitz: "Re: Tomcat database connection pool doesn't work. Please help!"
- Reply: David Rabinowitz: "Re: Tomcat database connection pool doesn't work. Please help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 22 Dec 2003 00:14:59 -0600
I tried to set up a database connection pool by following exactly the instructions in Tomcat 5 JNDI Datasource HOW-TO. But I got the following exception:
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:743)
.. ...
Can someone tell me why? Here's some info about my environment:
OS: Windows 2000 Professional
J2SE: 1.4.2
Tomcat: 5.0.16
Database: MySQL 4.0.13
DB Driver: org.gjt.mm.mysql.Driver; com.mysql.jdbc.Driver
By the way, when I query the database using a conventional Connection created with DriverManager, it works.
- Next message: correro: "Tomcat 5 Database Connection Pool problem"
- Previous message: Paul L: "Connection problem"
- Next in thread: David Rabinowitz: "Re: Tomcat database connection pool doesn't work. Please help!"
- Reply: David Rabinowitz: "Re: Tomcat database connection pool doesn't work. Please help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|