Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 31709 invoked from network); 11 Nov 2004 12:46:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Nov 2004 12:46:24 -0000 Received: (qmail 24367 invoked by uid 500); 11 Nov 2004 12:46:23 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 24346 invoked by uid 500); 11 Nov 2004 12:46:23 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 24335 invoked by uid 99); 11 Nov 2004 12:46:23 -0000 Received-SPF: pass (hermes.apache.org: domain of chicagokarl@gmail.com designates 64.233.184.203 as permitted sender) Received: from [64.233.184.203] (HELO wproxy.gmail.com) (64.233.184.203) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 11 Nov 2004 04:46:23 -0800 Received: by wproxy.gmail.com with SMTP id 68so396918wri for ; Thu, 11 Nov 2004 04:46:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=OE8qLEWkVyYn+G43InRLnqUhLpZLJKHh5B0/EHlzAi00dXq9wDJDZppepiCjMWWdGvlTGSTSFUwe6SIVT4rvo6Sirx9Ah6Ycqrqub9xTFlSniddSgAqqiBZTCyuG42+Klf94RYt29Nf3Sz3O/6MLHDLzx4vdP/n6EA8FsYhxpjU= Received: by 10.54.18.27 with SMTP id 27mr145210wrr; Thu, 11 Nov 2004 04:46:12 -0800 (PST) Received: by 10.54.31.53 with HTTP; Thu, 11 Nov 2004 04:46:12 -0800 (PST) Message-ID: <5e897eeb04111104462826258a@mail.gmail.com> Date: Thu, 11 Nov 2004 13:46:12 +0100 From: Karl Ostendorf Reply-To: Karl Ostendorf To: Derby Discussion Subject: Re: Database not found while in Tomcat / jsp In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20041110232320.6e98d30c.de-226@lafn.org> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm still working with the Cloudscape 10 beta but Derby should support something similar: add the -Dcloudscape.system.home=xxx system property to the JAVA_OPTS when starting tomcat. You can then use simple urls like jdbc:cloudscape:mydb On Thu, 11 Nov 2004 11:34:35 +0000, Henrique Gomes wrote: > On Nov 11, 2004, at 7:23, SML wrote: > > Thanks. No relative path worked, but the absolute from / did. Is there > > anything that I could do that would make a relative path work? This is > > a > > school project which I'm developing on Linux, and it will be displayed > > in class on a Windows machine ... and I don't think / vs. C:/ will > > translate :) > > > > Look into ServletContext.getRealPath() > > > > > --- > Henrique Gomes > hmng@farol.co.pt > >