Trouble with C3P0

Hi Folks, Nice work. My journey with logback started just today. So please bear with me. I want to do something i wasn't able to do with log4j: DB Appender + Pooling + MySQL. With log4j i had JDBCAppender+MySQL working. I managed to migrate this part to logback without a glitch. Now the pooling with C3P0 doesn't want to work. I get an exception saying "No suitable driver". What driver is it talking about? Here are the jars i got in my classpath: c3p0-0.9.1.2.jar logback-access-0.9.16.jar logback-classic-0.9.16.jar logback-core-0.9.16.jar mysql-connector-java-3.1.14-bin.jar slf4j-api-1.5.6.jar slf4j-api-1.5.8.jar Do i need something else? Thanks, Klaus. -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

Problem solved. My configuration file had <url>jdbc:mysql://localhost/logback_db</url> instead of <jdbcUrl>jdbc:mysql://localhost/logback_db</url> Klaus. -------- Original-Nachricht --------
Datum: Sun, 26 Jul 2009 03:18:22 +0200 Von: "Klaus Teller" <klaus.teller@gmx.net> An: logback-user@qos.ch Betreff: [logback-user] Trouble with C3P0
Hi Folks,
Nice work. My journey with logback started just today. So please bear with me. I want to do something i wasn't able to do with log4j: DB Appender + Pooling + MySQL.
With log4j i had JDBCAppender+MySQL working. I managed to migrate this part to logback without a glitch. Now the pooling with C3P0 doesn't want to work. I get an exception saying "No suitable driver".
What driver is it talking about? Here are the jars i got in my classpath:
c3p0-0.9.1.2.jar logback-access-0.9.16.jar logback-classic-0.9.16.jar logback-core-0.9.16.jar mysql-connector-java-3.1.14-bin.jar slf4j-api-1.5.6.jar slf4j-api-1.5.8.jar
Do i need something else?
Thanks, Klaus. -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
-- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

Hello Klaus, Strange, <url></url> should be correct. Could you send a copy of your config file. Klaus Teller wrote:
Problem solved. My configuration file had <url>jdbc:mysql://localhost/logback_db</url> instead of <jdbcUrl>jdbc:mysql://localhost/logback_db</url>
Klaus.
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch

Hi Ceki, I pasted my configuration at: http://pastebin.com/m3e2709d4. When i replace <url></url> with <jdbcUrl><jdbcUrl> everything works fine. But as it stands here, it doesn't work for me. Cheers, Klaus. -------- Original-Nachricht --------
Datum: Mon, 27 Jul 2009 13:14:46 +0200 Von: Ceki Gulcu <ceki@qos.ch> An: logback users list <logback-user@qos.ch> Betreff: Re: [logback-user] Trouble with C3P0
Hello Klaus,
Strange, <url></url> should be correct. Could you send a copy of your config file.
Klaus Teller wrote:
Problem solved. My configuration file had <url>jdbc:mysql://localhost/logback_db</url> instead of <jdbcUrl>jdbc:mysql://localhost/logback_db</url>
Klaus.
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
-- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
participants (2)
-
Ceki Gulcu
-
Klaus Teller