Hi,

perhaps it's a typo but the pool element isn't closed. What does the log say?

Greetz,

Jeroen

-----Original Message-----
From: Leszek Gawron [mailto:[EMAIL PROTECTED]
Posted At: Monday, November 15, 2004 12:05 AM
Posted To: Cocoon User List
Conversation: MySQL Database connection
Subject: Re: MySQL Database connection


Roberto wrote:
> Hiya all,
> I got a problem connection with my MySQL database. I guess I did the 
> right stuff, I mean in the web.xml file I added this:
>  
>     <init-param>
>       <param-name>load-class</param-name>
>       <param-value>
>         <!-- For MySQL on localhost -->
>         org.gjt.mm.mysql.Driver
>  
>         <!-- For JDBC-ODBC Bridge: -->
>         sun.jdbc.odbc.JdbcOdbcDriver
>       </param-value>
>     </init-param>
>  
> then in the cocoon.xconf I added this
>  
>     <jdbc logger="core.datasources.mysql_pool" name="mysql_pool">
>       <pool-controller min="5" max="10">
>       <dburl>jdbc:mysql:://</dblocation/>/</databaseName/></dburl>
>       <user>roberto</user>
>       <password/>
>     </jdbc>
RU sure you added it under datasources element? If so try browsing the 
logs for ClassNotFoundException. Maybe you mispelled the driver name or 
put the jar in improper place.


-- 
Leszek Gawron                                      [EMAIL PROTECTED]
Project Manager                                    MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to