Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 76234 invoked from network); 13 Jan 2011 09:13:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2011 09:13:14 -0000 Received: (qmail 76490 invoked by uid 500); 13 Jan 2011 09:13:14 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 76071 invoked by uid 500); 13 Jan 2011 09:13:12 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 75915 invoked by uid 99); 13 Jan 2011 09:13:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jan 2011 09:13:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jan 2011 09:13:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0D9Cl1N018977 for ; Thu, 13 Jan 2011 09:12:47 GMT Message-ID: <1641358.339221294909967083.JavaMail.jira@thor> Date: Thu, 13 Jan 2011 04:12:47 -0500 (EST) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4872) 'No suitable Driver' - Drivers don't get auto-loaded when only derbyrun.jar is in the classpath with ibm 1.6 jvm. In-Reply-To: <3574077.127521288301482229.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981183#action_12981183 ] Knut Anders Hatlen commented on DERBY-4872: ------------------------------------------- No, I don't think it's related to DERBY-2905. This issue is about IBM's JVM not detecting drivers in jar files that got pulled into the classpath by the manifest in some other jar file. It sounds like a JVM bug. > 'No suitable Driver' - Drivers don't get auto-loaded when only derbyrun.jar is in the classpath with ibm 1.6 jvm. > ----------------------------------------------------------------------------------------------------------------- > > Key: DERBY-4872 > URL: https://issues.apache.org/jira/browse/DERBY-4872 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.7.1.1 > Environment: Windows XP, with IBM 1.6 SR8 (and Sun/Oracle's 1.6.0_21-b07 for comparison). > Reporter: Myrna van Lunteren > Priority: Minor > Attachments: ReproDerby4872.java > > > With 1.6 jvms, doing DriverManager.getConnection() should autoload all drivers in the classpath. If I understand this correctly, it's based on what's in the manifest.mf, so it makes sense that you'd need to have jars, not just classes in the classpath. > But, with ibm 1.6 jvm, if I have only derbyrun.jar in the classpath, I get the message 'No suitable driver' with both the client, and the embedded driver. > However, if I add derby.jar to the classpath, the error goes away for the embedded driver, and if I add derbyclient.jar, it goes away for the client driver. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.