Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 79720 invoked from network); 6 May 2008 16:22:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 May 2008 16:22:28 -0000 Received: (qmail 84005 invoked by uid 500); 6 May 2008 16:22:30 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 83992 invoked by uid 500); 6 May 2008 16:22:30 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 83981 invoked by uid 99); 6 May 2008 16:22:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2008 09:22:30 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of blacknext@gmail.com designates 209.85.200.174 as permitted sender) Received: from [209.85.200.174] (HELO wf-out-1314.google.com) (209.85.200.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2008 16:21:45 +0000 Received: by wf-out-1314.google.com with SMTP id 25so1310701wfc.28 for ; Tue, 06 May 2008 09:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=WOBy0QKLPuDrUlb2bLvv4TlkEoOuJe0y2FSEhgL0j4M=; b=UcGeOlxt+RDBm9VOexT6YjbWxZSlGjr4uln3oSEZLurdru6ZC7HF8VtTXQxsaBwUN55twXqiTc0gsJawm6hn7RMCVE3JtZ1SbS5d7ZicfImsgeXIGVXAXqz4arH1ubL62uowUOzV1ur5Yak3aC8tvwuy/A89kBOowJCPpLZERJE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dIFRgJPifawIveyDKTTeUdzs4iqhqSuCT69KYgFBRCWza54k3Oy3dFAM6ueEp0GjWjdJKFPmjcnbpOzXIRPGShfmCEIChR7Hr7wVMhh5MQHaFnklDBtMmrF80n/LRcfxpGOMK/Vqp/sMMA4r7utuaWeJCYtfE1VKBmB+eti7QN0= Received: by 10.142.70.16 with SMTP id s16mr411540wfa.256.1210090919533; Tue, 06 May 2008 09:21:59 -0700 (PDT) Received: by 10.142.131.7 with HTTP; Tue, 6 May 2008 09:21:59 -0700 (PDT) Message-ID: Date: Tue, 6 May 2008 12:21:59 -0400 From: "Michael Gentry" To: user@cayenne.apache.org Subject: Re: Postgresql In-Reply-To: <6d49210b0805060843p3d2005adq949ccc7d37f9fc8e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6d49210b0805060843p3d2005adq949ccc7d37f9fc8e@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org This may not matter for your setup, but is the username "sa" correct? With PostgreSQL, you typically create a "postgres" database superuser. On Tue, May 6, 2008 at 11:43 AM, Eric Polino wrote: > We were using derby and have decided to switch to postgresql. I have > changed all my adapters and drivers and they seem to be working > properly. I'm getting issues when I try to run my initialization > script that has always worked before. It's a pretty simple script. > It's just a whole bunch of inserts that initialize a development db to > work with. It's complaining that it can't find the tables it's > attempting to insert into. I think it's pretty fair to assume that > since they aren't there, it's because they weren't created. Our setup > is pretty simple. Via an ant script, we use the postgresql adapter to > take the db schema generated by the CayenneModeler to create the db we > need in our postgresql db. > > I hope this is enough information to trigger some type of help. We > are all pretty new to Cayenne. We were working with derby so far, > simply because it was what the guide had us start with, and we haven't > changed yet. So, some parts we just do blindly. TIA for anyone > lending a hand. > > Facts i know: > my database exists, i can connect to it via the console > when connecting to my db after trying to build, the tables aren't there > it doesn't fail when attempting to setup the db via the schema > it fails when trying to run some insert statements > > Pieces of the build.xml that might be of help: > > > > adapter="org.apache.cayenne.dba.postgres.PostgresAdapter" > driver="org.postgresql.Driver" > url="${jdbc.url}" NOTE: set to > jdbc:postgresql://localhost:5432/SunriseDB > droptables="true" > droppk="true" > createtables="true" > createpk="true" > createfk="true" > username="sa" > password="*****" /> > > > > driver="org.postgresql.Driver" > classpathref="maven.compile.classpath" > url="${jdbc.url}" > userid="sa" > password="*****" > src="${basedir}/src/main/derby/scripts/dataset1-script"/> > > driver="org.postgresql.Driver" > classpathref="maven.compile.classpath" > url="${jdbc.url}" > userid="sa" > password="*****" > script="${basedir}/src/main/derby/binary_data/dataset1-clobs.txt"/> > > > -- > Eric Polino > Campground Automated Systems >