You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/11/05 20:01:03 UTC
DO NOT REPLY [Bug 14267] New: -
DBCP doesn't work on Tomcat 4.1.12 and Oracle JDBC driver
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=14267>.
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=14267
DBCP doesn't work on Tomcat 4.1.12 and Oracle JDBC driver
Summary: DBCP doesn't work on Tomcat 4.1.12 and Oracle JDBC
driver
Product: Commons
Version: 1.0 Final
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Major
Priority: Other
Component: Dbcp
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: troy.campano@libertymutual.com
I am unable to get to get Connection Pooling using DBCP to work in Tomcat
4.1.12. It works in 4.0.4, but when trying this in 4.1.12 I get:
"Cannot load JDBC driver class 'null'"
It seems a lot of people are getting this error.
I am able to create a regular DriverManager connection.
My server.xml entry:
<ResourceParams name="jdbc/DronePool">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:oracle:thin:drnwebuser@mynode:1521:myinstance</value>
</parameter>
<parameter>
<name>username</name>
<value>myuser</value>
</parameter>
<parameter>
<name>password</name>
<value>mypassword</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
</ResourceParams>
And here is my web.xml:
<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/DronePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Any ideas?
thank you for the help!
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>