Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 23254 invoked from network); 21 Jul 2006 20:47:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jul 2006 20:47:34 -0000 Received: (qmail 7467 invoked by uid 500); 21 Jul 2006 20:47:31 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 7447 invoked by uid 500); 21 Jul 2006 20:47:31 -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 7321 invoked by uid 99); 21 Jul 2006 20:47:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jul 2006 13:47:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [63.247.81.241] (HELO tss8.serverconfig.com) (63.247.81.241) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jul 2006 13:47:30 -0700 Received: from rrcs-67-52-41-92.west.biz.rr.com ([67.52.41.92] helo=[127.0.0.1]) by tss8.serverconfig.com with esmtpa (Exim 4.52) id 1G41tt-0006vc-86 for derby-user@db.apache.org; Fri, 21 Jul 2006 16:47:09 -0400 Message-ID: <44C13D7E.8080704@decoursey.net> Date: Fri, 21 Jul 2006 15:47:58 -0500 From: Paul J DeCoursey User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Derby Discussion Subject: Re: Embedded in Servlet on Tomcat? References: <44C0C3BF.8070109@stanczakgroup.com> <44C121BB.8070206@gmail.com> <44C124BB.5070408@decoursey.net> <44C1344F.2060701@gmail.com> <44C139F4.9030304@stanczakgroup.com> In-Reply-To: <44C139F4.9030304@stanczakgroup.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - tss8.serverconfig.com X-AntiAbuse: Original Domain - db.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - decoursey.net X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Stanczak Group wrote: > When I say absolute I mean in the connection parameters. That's the > only thing that Derby specific. I'm using Toplink with JPA. > > Stanley Bradbury wrote: >> >>> >>> >> Hi Paul - >> >> Sounds like you have a lot of experience in the area. Your >> architecture seems beyond my experience but I did notice something I >> missed in my first read that might be of help. You wrote: >> >> "..I have an absolute path set, but it still does it. Shouldn't it >> write everything to that path and not just start writing to where >> ever it decides home is? .." >> >> Derby writes the logfile to derby.system.home (this also serves as >> the ROOT directory for any relative path references). If this is not >> explicitly set prior to loading the Derby driver the value defaults >> to the default directory for the JVM. Derby's view of the world is >> from the JVM perspective, not the server or application that starts >> it. I assume the 'absolute path' you set is an application or server >> property? >> >> Anyway, a possible solution for you might be to set derby.system.home >> to an appropriate location (the absolute path?) prior to loading the >> Derby driver. >> >> HTH >> >> > I'm not really familiar with Toplink with JPA, but I'm thinking that Stanley Bradbury is correct. You need to get derby.system.home set to a writable directory. If possible you can try to set it using the -Dderby.system.home= option in your startup script (HINT: environment variable TOMCAT_OPTS). I'm not sure of any other way to ensure that that gets set prior to Derby loading. In searching I found this... something I have not tried, but worth a look... http://www.velocityreviews.com/forums/t144344-tomcat-50-setting-system-properties-for-an-application.html Good luck, Paul