tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: problem in pooled database
Date Wed, 10 Dec 2008 17:31:39 GMT
Patient says: It hurts when I do this...  (demonstrates movement)
Doctor says: Don't do that.

Moral of the story is the error message is pretty clear.  If your class
has imported javax.activation.* and javax.sql.*, you may have to be more
specific on the type of your datasource variable:

javax.sql.DataSource dbDataSrc = /* code for retrieving the datasource */

For less sarcasm and more help, please feed us more details like say a
snippet of code where this error occurs, what was imported for that
class, and relevant parts of your config.

--David

ahmet temiz wrote:
> hello
>
> I am trying to manage pooled database (postgresql).I am encountering
> this problem :
>
> java.lang.ClassCastException:
> org.apache.tomcat.dbcp.dbcp.BasicDataSource cannot be cast to
> javax.activation.DataSource
>
> I will appreciate if you supply any information to me to overcome the problem
>
> kind regards
>
> Ahmet Temiz
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message