cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@apache.org>
Subject Re: ClassCastException for Postgres datasource in Generator
Date Mon, 15 Dec 2003 07:17:42 GMT
Le Lundi, 15 déc 2003, à 07:58 Europe/Zurich, Harald Wehr a écrit :

> ...In cocoon.xconf we added the parameters for the connection:
>  <datasources>
>     <jdbc name="vrgis">
>       <pool-controller max="10" min="5"/>
>       <dburl>jdbc:postgresql://192.168.9.2/vrgis</dburl>
>       <user>vrgis</user>
>       <password>sigrv</password>
>     </jdbc>
>   </datasources>

I'm not sure if this applies to your case, but
http://avalon.apache.org/excalibur/api/org/apache/avalon/excalibur/ 
datasource/JdbcDataSource.html
says that you need a connection-class attribute to use JDBC3 features.

> Connection conn =  datasource.getConnection();

For debugging, you could check what you got first:

Object obj =  datasource.getConnection();
debug(obj.getClass().getName());

HTH
-Bertrand


Mime
View raw message