From derby-user-return-13551-apmail-db-derby-user-archive=db.apache.org@db.apache.org Mon May 2 13:13:52 2011 Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 284123151 for ; Mon, 2 May 2011 13:13:52 +0000 (UTC) Received: (qmail 50552 invoked by uid 500); 2 May 2011 13:13:51 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 50478 invoked by uid 500); 2 May 2011 13:13:51 -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 50471 invoked by uid 99); 2 May 2011 13:13:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 May 2011 13:13:50 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of john.foreign@gmail.com designates 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-wy0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 May 2011 13:13:44 +0000 Received: by wyb29 with SMTP id 29so4848488wyb.31 for ; Mon, 02 May 2011 06:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=ss4EIHH/O1BKhpKHEHwZX7LY0aF38QNViOFkzqxjUxs=; b=s72MKzc4A5/15P49mNK1aSVOCodAdt48roeSfQyt89whmcUXD5UwLcHthggfD/2jTx FpFOvBPqdk8MxP52x5TwlqT17rDml3PeH6w3biIqA++IXOTJwiUQCWTlH+RRqG6kGaIB 1F6F1lqqO6hiO3cHk1WDBj1Rjf386Eh8SZUfw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=n60vaWcAxga1MvAHMAw5be5vAIP2N8HeA5uDXq5LOrj9c5m7sdroS3224W66YOqhrQ EH6IKjjcV/KWjko/8sQO3CgcFPRw6rRTDvmfFWLm9k8/juPVYlCAeBhWRL23knz3aGEy y+ots/yT55h3x2bMaASZZWtui6CNz9iSDZL60= Received: by 10.227.53.73 with SMTP id l9mr3965152wbg.19.1304342002343; Mon, 02 May 2011 06:13:22 -0700 (PDT) Received: from [192.168.1.101] (bzq-84-110-212-219.red.bezeqint.net [84.110.212.219]) by mx.google.com with ESMTPS id h11sm3384518wbc.9.2011.05.02.06.13.19 (version=SSLv3 cipher=OTHER); Mon, 02 May 2011 06:13:20 -0700 (PDT) Message-ID: <4DBEADEC.1060709@gmail.com> Date: Mon, 02 May 2011 16:13:16 +0300 From: John English User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Derby Discussion Subject: Derby network server Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I have a webapp which runs a networked Derby server. I want to be able to access it from a separate app. The webapp starts the server from the contextInitialized() method of a ServletContextListener: server = new NetworkServerControl(); server.start(null); which works fine. However, when I try to open a second connection with IJ it gives me this response: ij> connect '/foo/db;dataEncryption=true;bootPassword=xyz'; ERROR XJ040: Failed to start database '/foo/db', see the next exception for details. ERROR XSDB6: Another instance of Derby may have already booted the database C:foo\db. ij> Is there something I'm missing here? TIA, ------------------------------------------------------------------------ John English | My old University of Brighton home page is still here: | http://www.it.brighton.ac.uk/staff/je ------------------------------------------------------------------------