Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 04A259FD2 for ; Thu, 3 May 2012 20:02:56 +0000 (UTC) Received: (qmail 66185 invoked by uid 500); 3 May 2012 20:02:55 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 66148 invoked by uid 500); 3 May 2012 20:02:55 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 66138 invoked by uid 99); 3 May 2012 20:02:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 20:02:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Chiradeep.Vittal@citrix.com designates 66.165.176.63 as permitted sender) Received: from [66.165.176.63] (HELO SMTP02.CITRIX.COM) (66.165.176.63) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 20:02:48 +0000 X-IronPort-AV: E=Sophos;i="4.75,526,1330923600"; d="scan'208,217";a="193312297" Received: from sjcpmailmx01.citrite.net ([10.216.14.74]) by FTLPIPO02.CITRIX.COM with ESMTP/TLS/RC4-MD5; 03 May 2012 16:02:22 -0400 Received: from SJCPMAILBOX01.citrite.net ([10.216.4.73]) by SJCPMAILMX01.citrite.net ([10.216.14.74]) with mapi; Thu, 3 May 2012 13:02:18 -0700 From: Chiradeep Vittal To: "cloudstack-dev@incubator.apache.org" Date: Thu, 3 May 2012 13:02:15 -0700 Subject: FW: Avoid tomcat6.0.35 (java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/cloud?autoReconnect=true&prepStmtCacheSize=517&cachePrepStmts=true) Thread-Topic: Avoid tomcat6.0.35 (java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/cloud?autoReconnect=true&prepStmtCacheSize=517&cachePrepStmts=true) Thread-Index: Ac0pZ6Suhnm2VhPfR9uC3JTCmWJu3g== Message-ID: In-Reply-To: <93099572B72EB341B81A644E134F240B010A7DCDA49A@SJCPMAILBOX01.citrite.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.13.0.110805 acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_CBC832301FC5Cchiradeepvittalcitrixcom_" MIME-Version: 1.0 --_000_CBC832301FC5Cchiradeepvittalcitrixcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable From: Frank Zhang > Date: Tue, 10 Jan 2012 13:56:14 -0800 Subject: Avoid tomcat6.0.35 (java.sql.SQLException: No suitable driver foun= d for jdbc:mysql://localhost:3306/cloud?autoReconnect=3Dtrue&prepStmtCacheS= ize=3D517&cachePrepStmts=3Dtrue) If you see exception: [java] java.sql.SQLException: No suitable driver found for jdbc:mysql://l= ocalhost:3306/cloud?autoReconnect=3Dtrue&prepStmtCacheSize=3D517&cachePrepS= tmts=3Dtrue [java] at java.sql.DriverManager.getConnection(DriverManager.java:= 640) [java] at java.sql.DriverManager.getConnection(DriverManager.java:= 200) [java] at org.apache.commons.dbcp.DriverManagerConnectionFactory.c= reateConnection(DriverManagerConnectionFactory.java:75) [java] at org.apache.commons.dbcp.PoolableConnectionFactory.makeOb= ject(PoolableConnectionFactory.java:582) [java] at org.apache.commons.pool.impl.GenericObjectPool.borrowObj= ect(GenericObjectPool.java:1181) [java] at org.apache.commons.dbcp.PoolingDataSource.getConnection(= PoolingDataSource.java:106) [java] at com.cloud.utils.db.Transaction.getStandaloneConnectionWi= thException(Transaction.java:199) [java] at com.cloud.utils.db.Transaction.getStandaloneConnection(T= ransaction.java:208) Please check if you are using tomcat6.0.35. We do have this driver cloud-my= sql-connector-java-5.1.7-bin.jar which works peacefully with former version= s of tomcat6. I have been investigating this for a while, my best guess is tomcat silentl= y did some tricks in its library loading method. I had sent a mail to tomca= t6 community but received no reply yet, and the 6.0.35 release notes have n= o particulars as well. As 6.0.35 is the newest version, the older one 6.0.33 works well. --_000_CBC832301FC5Cchiradeepvittalcitrixcom_--