Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4DB3922B for ; Tue, 14 Feb 2012 15:02:32 +0000 (UTC) Received: (qmail 95948 invoked by uid 500); 14 Feb 2012 15:02:32 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 95927 invoked by uid 500); 14 Feb 2012 15:02:32 -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 95920 invoked by uid 99); 14 Feb 2012 15:02:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 15:02:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 15:02:26 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 16CD21B7A63 for ; Tue, 14 Feb 2012 15:02:06 +0000 (UTC) Date: Tue, 14 Feb 2012 15:02:06 +0000 (UTC) From: "Kim Haase (Commented) (JIRA)" To: derby-dev@db.apache.org Message-ID: <1563665975.36643.1329231726094.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1730323380.32657.1329159059458.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5612) Puzzling documentation about the URL to a database on the classpath 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-5612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207763#comment-13207763 ] Kim Haase commented on DERBY-5612: ---------------------------------- Thanks for noticing this, Rick. Looks like the change fell through the documentation cracks back in 2005. Better late than never. > Puzzling documentation about the URL to a database on the classpath > ------------------------------------------------------------------- > > Key: DERBY-5612 > URL: https://issues.apache.org/jira/browse/DERBY-5612 > Project: Derby > Issue Type: Bug > Components: Documentation > Affects Versions: 10.9.0.0 > Reporter: Rick Hillegas > Assignee: Kim Haase > > The "Accessing databases from the classpath" section of the Derby Developer's Guide says that you can access a database on the classpath by putting a forward slash in front of the database name (and then adding other path legs as needed). I don't find that it works this way. I ran the following experiment: > 1) I put a database called nast in the testRun/extin subdirectory of the current directory. > 2) Then I put testRun/extin on the classpath. > 3) Then I tried connecting to the database with various URLs. > The following URLs could not find the database: > connect 'jdbc:derby:/nast;user=KIWI;password=KIWI_password'; > connect 'jdbc:derby:nast;user=KIWI;password=KIWI_password'; > connect 'jdbc:derby:classpath:/nast;user=KIWI;password=KIWI_password'; > But the following URL found the database: > connect 'jdbc:derby:classpath:nast;user=KIWI;password=KIWI_password'; > This is not what I expected from the documentation in the Developer's Guide. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira