You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/09/04 21:37:22 UTC

DO NOT REPLY [Bug 22913] - Using jndi to get a DBCP BasicDataSource gives a 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=22913>.
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=22913

Using jndi to get a DBCP   BasicDataSource gives a  ClassCastException





------- Additional Comments From masque@inetsolve.com  2003-09-04 19:37 -------
I forgot to mention that I use these three lines to get the datasource:
initContext = new InitialContext();
javax.naming.Context envContext =  
(javax.naming.Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookupLink("jdbc/SessionDB");