Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 35333 invoked from network); 2 Mar 2005 15:40:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Mar 2005 15:40:25 -0000 Received: (qmail 73251 invoked by uid 500); 2 Mar 2005 15:40:24 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 73231 invoked by uid 500); 2 Mar 2005 15:40: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 73218 invoked by uid 99); 2 Mar 2005 15:40:23 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of rstrong@panix.com designates 166.84.1.72 as permitted sender) Received: from mail1.panix.com (HELO mail1.panix.com) (166.84.1.72) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Mar 2005 07:40:22 -0800 Received: from mailspool3.panix.com (mailspool3.panix.com [166.84.1.78]) by mail1.panix.com (Postfix) with ESMTP id 44E1F5958A for ; Wed, 2 Mar 2005 10:40:20 -0500 (EST) Received: from [10.169.60.56] (mcnat125.med.nyu.edu [128.122.2.125]) by mailspool3.panix.com (Postfix) with ESMTP id 790CC2899EA for ; Wed, 2 Mar 2005 10:40:20 -0500 (EST) Message-ID: <4225DEA4.3020508@panix.com> Date: Wed, 02 Mar 2005 10:41:24 -0500 From: Rick Strong Reply-To: rstrong@panix.com User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Discussion Subject: Creating DB with Derby Net Server Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Greetings, I am having difficulty creating a database using the net server. I start the server programmatically in a standalong pgm like this: **************************************************** NetworkServerControl server = new NetworkServerControl(InetAddress.getByName("localhost"), port); server.start(null); **************************************************** In this case port == default: 1527; also, I have tried this using "0.0.0.0" as the host address, same results. Then attempt to create and connect to a database: **************************************************** jdbc:derby:net://localhost:1527/demoDB:user=usr;password=pwd;create=true;retrieveMessagesFromServerOnGetMessage=true; **************************************************** but this fails with the following error message: **************************************************** com.ibm.db2.jcc.c.DisconnectException: The application server rejected establishment of the connection. An attempt was made to access a database, demoDB, which was not found. **************************************************** I should mention that it works fine with an existing DB, and also works fine in embedded mode. Have I missed something RE: directives, security, etc? Thanks, Rick Strong