Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 39294 invoked from network); 7 Feb 2006 19:21:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Feb 2006 19:21:27 -0000 Received: (qmail 8151 invoked by uid 500); 7 Feb 2006 19:21:20 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 8096 invoked by uid 500); 7 Feb 2006 19:21:19 -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 8084 invoked by uid 99); 7 Feb 2006 19:21:19 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 11:21:18 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 121E8CB for ; Tue, 7 Feb 2006 20:20:58 +0100 (CET) Message-ID: <239093211.1139340058072.JavaMail.jira@ajax.apache.org> Date: Tue, 7 Feb 2006 20:20:58 +0100 (CET) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-930) Add support for autoloading of Derby client drivers In-Reply-To: <1126289257.1139337537266.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-930?page=comments#action_12365472 ] Daniel John Debrunner commented on DERBY-930: --------------------------------------------- In the policy file the patch has lines like: + // junitTests/jdbcapi/AutoloadTest.java + permission java.lang.RuntimePermission "getProtectionDomain"; but this permission is for generic code in DerbyJUnitTest, not just that specific test. When the test runs with JDK 1.4 is it auto-loading the driver? I couldn't see any setting of jdbc.drivers so I'm unclear what would cause the driver to auto-load. >From earlier comment: > I disabled the security manager for AutoloadTest. The reasons for this are documented in AutoloadTest_app.properties: When running under our test harness from jar files under jdk1.6, system properties can't be read. This causes the drivers to silently fail to autoload. Note that when running under jdk1.6 from jar files outside our test harness, the drivers correctly autoload. This is somewhat troubling, I don't understand what reading system properties has to do with the auto-loading of JDBC drivers by the java virtual machine. Can you maybe explain more why this fails for you, rather than just disabling the security manager. Disabling the security manager should not be a common option. I think it's as simple as you are not fetching the System property in a priv block. > Add support for autoloading of Derby client drivers > --------------------------------------------------- > > Key: DERBY-930 > URL: http://issues.apache.org/jira/browse/DERBY-930 > Project: Derby > Type: New Feature > Reporter: Rick Hillegas > Assignee: Rick Hillegas > Attachments: bug930.diff > > Write Derby's driver names into the correct spot in derby.jar and derbyclient.jar so that the 1.6 vm autoloads Derby drivers. Section 10.2.1 of the JDBC4 spec describes the details. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira