cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "HALLOWELL,KARL (HP-Cupertino,ex1)" <karl_hallow...@hp.com>
Subject RE: [C2] pooling setup question
Date Mon, 11 Jun 2001 16:47:40 GMT
I too am receiving this error. The esql sample works without pooling, but I
get the same exception with the esql:pool mentioned below. BTW, my setup
uses C2 with Tomcat 4.0b5 and Oracle 8i with the thin client jdbc driver.


Karl Hallowell                 karl_hallowell@hp.com

> -----Original Message-----
> From: Gary Clark [mailto:garyc@jeld-wen.com]
> 
> 
> I'm trying to get pooling to work with esql under C2b1.  
> Without pools, it
> works fine.  IE, if I use the following.
> 
>     <esql:driver>org.postgresql.Driver</esql:driver>
>     <esql:dburl>jdbc:postgresql://localhost/develop</esql:dburl>
>     <esql:username>devtool</esql:username>
>     <esql:password></esql:password>
> 
> My cocoon.conf contains:
> 
>   <datasources>
>     <jdbc name="devtool">
>       <pool-controller min="5" max="10"/>
>       <dburl>jdbc:postgresql://localhost/develop</dburl>
>       <user>devtool</user>
>       <password></password>
>     </jdbc>
>   </datasources>
> 
> When I change it to <esql:pool>devtool</esql:pool> I the the following
> error:
> org.apache.cocoon.ProcessingException: Failed to execute
> pipeline.:org.apache.cocoon.ProcessingException: Failed to execute
> pipeline.:org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate():java.lang.RuntimeException: 
> Could not get
> the datasource java.sql.SQLException: You cannot get a 
> Poolable before the
> pool is initialized
> 
> So, how do I get the pool to initialize?  I've tried to find 
> something in
> the examples, but I must be missing something.
> 
> Gary A. Clark
> Systems Programmer
> Software Services Group
> JELD-WEN Information Systems
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message