DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15672>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15672

DBCP doesn't work on Tomcat 4.1.18 with Oracle JDBC driver





------- Additional Comments From [EMAIL PROTECTED]  2003-01-03 08:42 
-------
Hello!
I receive the same errore using Informix.
Trying to resolve the problems I've modified the classes BasicDataSource and 
BasicDataSourceFactory and I've seen a strange thing:
On startup, Tomcat creates a DataSource correctly according to server.xml.
When I execute the ctx.lookup()/getConnection() for my DS, I see 
BasicDataSourceFactory creates a new BasicDataSource that contains only 
description, scope and auth (according to my web.xml) while driverClassName, 
maxWait and the other params doesnt't exist. WHen I do ds.getConnection I 
receive the error:
java.sql.SQLException: Cannot load JDBC driver class 'null'
        at org.apache.commons.dbcp.BasicDataSource.createDataSource 
BasicDataSource.java:289)
        at org.apache.commons.dbcp.BasicDataSource.getConnection
(BasicDataSource.java:162)
This is "normal" because createDataSource is called on the patial empty 
DataSource (that doesn't contain driverClassName etc...)

I hope I give you some idea to solve the problem.

Bye

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to