Question:
When I try to use the Connection pooling code, I get the following
exception:
Could not get the datasource java.sql.SQLException: You cannot
get a Poolable before the pool is initialized
What's going on?
Answer:
The most common reason for this exception is that the driver was not loaded.
Cocoon uses an initial parameter in the "web.xml" file to automatically load
classes on startup. This way, the class is loaded only once and the
server's
time is spent doing more productive things. Make sure the following entry
is in your "web.xml" file:
<init-param>
<param-name>load-class</param-name>
<param-value>
<!-- comma or whitespace separated list of fully qualified class names
to load on startup.
-->
oracle.jdbc.driver.OracleDriver
</param-value>
</init-param>
If the class is loaded correctly, and you are still getting this error,
then there
is probably an error in your connection information. The SQLException
above is thrown when there are no open connections to the database.
------------------------------------------------------------------------------
[EMAIL PROTECTED] wrote:
>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2190
>
>*** shadow/2190 Thu Jun 14 15:25:45 2001
>--- shadow/2190.tmp.5202 Thu Jul 19 10:36:12 2001
>***************
>*** 74,76 ****
>--- 74,80 ----
> ------- Additional Comments From [EMAIL PROTECTED] 2001-06-14 15:25 -------
> Created an attachment (id=227)
> last 1300 lines of cocoon.log. Exceptions start occuring near begining.
>+
>+
>+ ------- Additional Comments From [EMAIL PROTECTED] 2001-07-19 10:36 -------
>+ This problem isn't appearing when the database driver is set to HSQL.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]