tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Barnes <>
Subject Re: Source for Packages org.apache.tomcat.dbcp and below?
Date Tue, 12 Sep 2006 18:29:37 GMT
Yoav -

Thanks for responding.

"re-packaged"?   Does that mean "wrapped"?

It has a different package structure than that in Jakarta Commons DBCP.

How are these related?  By extension?  By wrapping?  Do I cast one of these to:
or can I cast it to:

I can find org.apache.tomcat.dbcp.dbcp.BasicDataSource in the jar files.  I 
cannot find org.apache.commons.dbcp.BasicDataSource in the jar files.

I'm trying to figure out why I cannot get Application-managed DataSource 
(auth=Application) to work.  I want to look at the source code to investigate. 
I was also trying to cast the DataSource returned by JNDI so I can query its 
properties.  Casting to org.apache.tomcat.dbcp.dbcp.BasicDataSource doesn't seem 
to work, resulting in a "package does not exist" even after including the jar 
file in the CLASSPATH.


Yoav Shapira wrote:
> org.apache.tomcat.dbcp should be just a repackaged Jakarta Commons
> DBCP, with no code changes.  The data source you get back from
> Tomcat's JNDI by default is just that repackaged one, which of course
> implements the standard javax.sql.DataSource interface.
> Yoav
> On 9/12/06, Mark Barnes <> wrote:
>> I have downloaded the 5.5.17 source, and am looking for the source for 
>> class
>> org.apache.tomcat.dbcp.dbcp.BasicDataSource but cannot find it.  In 
>> fact, I
>> cannot find org.apache.tomcat.dbcp.
>> Can someone please point me to where it is?
>> I've also looked under Jakarta Commons but can't seem to find it there 
>> either.
>> I seem to be able to find only 
>> org.apache.commons.dbcp.BasicDataSource.  But
>> that's not the kind of DataSource return via JNDI from Tomcat.
>> Thanks,
>> ---Mark
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message