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 2003/12/26 14:24:07 UTC

DO NOT REPLY [Bug 25762] - SharedPoolDataSource getConnection() throws ClassCastException

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=25762>.
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=25762

SharedPoolDataSource getConnection() throws ClassCastException

dirk.verbeeck@pandora.be changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From dirk.verbeeck@pandora.be  2003-12-26 13:24 -------
The underlying datasource providing the physical connections to the
PerUserPoolDataSource & SharedPoolDataSource should implement the
javax.sql.ConnectionPoolDataSource interface.
BasicDataSource doesn't implement this interface and therefor cannot be used in
this configuration.
I have improved the error message when this illegal configuration is detected.

The actual solution is to use the cpdsadapter. 
See:
http://jakarta.apache.org/commons/dbcp/apidocs/org/apache/commons/dbcp/datasources/package-summary.html
http://jakarta.apache.org/commons/dbcp/apidocs/org/apache/commons/dbcp/cpdsadapter/package-summary.html

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org