Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 92083 invoked by uid 500); 12 Jun 2003 18:05:59 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 92069 invoked from network); 12 Jun 2003 18:05:58 -0000 Received: from paulus.fzi.de (HELO exchange.fzi.de) (141.21.6.162) by daedalus.apache.org with SMTP; 12 Jun 2003 18:05:58 -0000 Received: from fzi.de ([141.21.7.131]) by exchange.fzi.de with Microsoft SMTPSVC(5.0.2195.5329); Thu, 12 Jun 2003 20:05:59 +0200 Message-ID: <3EE8C107.8090709@fzi.de> Date: Thu, 12 Jun 2003 20:05:59 +0200 From: Markus Blasl User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Get values from Postgres database References: <3EE6FAD4.9805.2F4C8A0@localhost> <3EE872B6.12830.8B11235@localhost> <3EE8BD1E.2010106@pacageek.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Jun 2003 18:05:59.0158 (UTC) FILETIME=[46F93960:01C3310D] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello, i want to set up an application with a postgres database. It's my first contact with cocoon so far, maybe someone can help. What I did so far: Installed Postgres, Apache, Tomcat and Cocoon. Everything is working fine, and I also played a little bit with the cocoon features. Now I downloaded the JDBC-Driver for Postgres and put it into cocoons lib dir. then edited web.xml: load-class org.hsqldb.jdbcDriver org.postgresql.Driver And I also edited cocoon.xconf: jdbc:postgresql:test://localhost:5432 blasl If i put there something other then test (my database) thn on tty0 comes up DATABASE ... not found. So I guess that everything is set up ok so far. Now I created a new directory under mount and put an xml-file in there: films select * from films No records found... SQL Exception: I also have my own sitemap.xmap file in there: This is the table of my database: Table "public.films" Column | Type | Modifiers -----------+-------------------------+----------- code | character(5) | not null title | character varying(40) | not null date_prod | date | date_in | date | kind | character(15) | len | interval hour to minute | Indexes: firstkey primary key btree (code) When I now try to get the html-output of the xml file, all i get is this: films select * from films No records found... SQL Exception: Please, if anyone has an idea how to fix it, I'd really be happy. Thanks in advance, Markus --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-users-help@xml.apache.org