cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: Cannot get a Poolable before pool initialized
Date Fri, 17 Aug 2001 13:43:19 GMT
florent barbare wrote:
> 
> I have the same errors. i'm looking for a solution too...

Read the FAQ, and try the solutions there.  Read the list,
and check the list archives--the solutions have been discussed
many times already.

> 
> Thanks
> 
> Florent
> 
> -----Original Message-----
> From: Sergio [mailto:sng2@alu.ua.es]
> Sent: jeudi 16 août 2001 21:23
> To: cocoon-users@xml.apache.org
> Subject: Cannot get a Poolable before pool initialized
> 
> Hi
> I'm working with Cocoon 2
> 
> I receive this message when I try to create a connection with a datasource.
> The configuration of datasource in cocoon.xconf is:
> 
>   <datasources>
>     <jdbc name="dbpccom">
>       <pool-controller min="5" max="10"/>
>       <auto-commit>false</auto-commit>
>       <dburl>jdbc:mysql://localhost:3306/pccom</dburl>
>       <user>pccom</user>
>       <password></password>
>     </jdbc>
>   </datasources>
> 
> When I try to access to DB without any datasource it works fine:
> 
> <esql:connection>
>   <esql:driver>org.gjt.mm.mysql.Driver</esql:driver>
>   <esql:dburl>jdbc:mysql://localhost:3306/pccom</esql:dburl>
>   <esql:username>pccom</esql:username>
>   <esql:password></esql:password>
>   <esql:autocommit>false</esql:autocommit>
>   ...
>   ...
>   ...
> </esql:connection>
> 
> But if I try to use the datasource:
> 
> <esql:connection>
>   <esql:pool>dbpccom</esql:pool>
>   ...
>   ...
>   ...
> </esql:connection>
> 
> that is the error:
> 
> 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
> 
> ¿how can I initialize the pool?
> 
> ---------------------------------------------------------------------
> 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>

---------------------------------------------------------------------
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