Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 96541 invoked from network); 22 Aug 2007 15:35:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Aug 2007 15:35:45 -0000 Received: (qmail 67616 invoked by uid 500); 22 Aug 2007 15:35:40 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 67443 invoked by uid 500); 22 Aug 2007 15:35:40 -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 67429 invoked by uid 99); 22 Aug 2007 15:35:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2007 08:35:40 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.206.42.18] (HELO mail.optrak.co.uk) (217.206.42.18) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2007 15:36:15 +0000 Received: from mercury.net.optrak.co.uk ([192.168.41.65]) by mail.optrak.co.uk with Microsoft SMTPSVC(6.0.3790.3959); Wed, 22 Aug 2007 16:35:17 +0100 Received: from 192.168.41.61 ([192.168.41.61] helo=mercury.net.optrak.co.uk) by ASSP-nospam; 22 Aug 2007 16:35:17 +0100 Received: from [192.168.41.87] ([192.168.41.87]) by mercury.net.optrak.co.uk with Microsoft SMTPSVC(6.0.3790.3959); Wed, 22 Aug 2007 16:35:17 +0100 Message-ID: <46CC57B5.9000405@optrak.co.uk> Date: Wed, 22 Aug 2007 16:35:17 +0100 From: Mark Thornton User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Derby Discussion Subject: Re: Problem with Webstart deployment References: <14F2F2B716C13E418B68B44FFA3D8AE806F396@server> In-Reply-To: <14F2F2B716C13E418B68B44FFA3D8AE806F396@server> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Aug 2007 15:35:17.0619 (UTC) FILETIME=[0AA4DC30:01C7E4D2] X-Virus-Checked: Checked by ClamAV on apache.org Lindsay Holman wrote: > Hi all, > > I hope I have sent this to the appropriate place. > > I am developing a webstart application which incorporates an embedded > Derby DB. > > I am having a problem however trying to lookup resources, > specifically, the getInputStream() method on CPFile. > > Running the app against the same DB (deployed as a jar) outside of > webstart works fine. > > To add to the confusion, the particular .dat file being loaded does > load successfully sometimes, but not at other times. > > Debugging, I can see CPFile get's the JNLP class loader, and calls > getResourceAsStream, passing the path to the required data file (in my > case QDB/seg0/c49b1.dat). This simply returns null, resulting in the > method eventually raising a FileNotFoundException, which appears in > the Derby log. Interestingly, it is always at the same spot that this > method fails. The same class loader is definitely being referenced by > the successful and unsuccessful attempts at loading this resource. > > Has anyone come across anything like this? I know it sounds like a > JNLPClassLoader issue, but I thought someone here may have seen > something similar. > > Regards > > Lindsay Holman > How many jar files do you have and if more than one is the jar file containing the database explicitly specified in the JNLP file? WebStart takes no notice of ClassPath attributes in jar file manifests. Mark Thornton