You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kim Haase (Updated) (JIRA)" <ji...@apache.org> on 2012/04/13 22:26:17 UTC
[jira] [Updated] (DERBY-5612) Puzzling documentation about the URL
to a database on the classpath
[ https://issues.apache.org/jira/browse/DERBY-5612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kim Haase updated DERBY-5612:
-----------------------------
Attachment: DERBY-5612.zip
DERBY-5612.stat
DERBY-5612.diff
Attaching DERBY-5612.diff, DERBY-5612.stat, and DERBY-5612.zip, with changes as follows:
M src/devguide/rdevdvlp847152.dita
M src/devguide/cdevdvlp91854.dita
M src/devguide/tdevdeploy39856.dita
M src/devguide/cdevdeploy18716.dita
M src/devguide/cdevdvlp17453.dita
M src/devguide/rdevdvlp22102.dita
M src/devguide/cdevdvlp40350.dita
I hope I made all the needed fixes. I also have to confess that the change to cdevdvlp40350.dita merely adds a missing topic link. I thought I might need to make changes to it and noticed the problem.
Thanks in advance.
> 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
> Attachments: DERBY-5612.diff, DERBY-5612.stat, DERBY-5612.zip
>
>
> 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