Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 7878 invoked from network); 6 Jun 2008 15:16:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2008 15:16:44 -0000 Received: (qmail 53048 invoked by uid 500); 6 Jun 2008 15:16:45 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 52971 invoked by uid 500); 6 Jun 2008 15:16:44 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 52960 invoked by uid 99); 6 Jun 2008 15:16:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 08:16:44 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dominic.tootell@bbc.co.uk designates 132.185.240.143 as permitted sender) Received: from [132.185.240.143] (HELO mailgw3.thls.bbc.co.uk) (132.185.240.143) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 15:15:55 +0000 Received: from bbcxues10.national.core.bbc.co.uk ([10.180.130.26]) by mailgw3.thls.bbc.co.uk (8.13.7/8.13.7) with ESMTP id m56FG7rX022590 for ; Fri, 6 Jun 2008 16:16:07 +0100 (BST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Database connection by cocoon 2.2 Date: Fri, 6 Jun 2008 16:16:11 +0100 Message-ID: In-Reply-To: <4849525A.2050603@memocomp.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Database connection by cocoon 2.2 Thread-Index: AcjH5zWm+/nypwdRRJCf5zlTrYHsfAAACLRg References: <4849335C.5CE9.00D4.0@csir.co.za> <48492181.2080406@memocomp.de> <484948C6.5CE9.00D4.0@csir.co.za> <48493D6A.40806@memocomp.de> <4849525A.2050603@memocomp.de> From: "Dominic Tootell" To: X-Virus-Checked: Checked by ClamAV on apache.org Cool on getting it working, The src/main/resources/META-INF/cocoon/avalon/custom-sitemap-compents.xconf doesn't exist out of the box when you create a block from an artifact. But, you can create it yourself.=20 More details: Inside the cocoon-core-2.2.0.jar there is a file in the org/apache/cocoon directory called cocoon.xconf containing: =09 So I guessed this means that you can create any old .xconf file in a blocks' META-INF/cocoon/avalon directory. This means you can centralise any generic xconf configuration that you would normally have in cocoon 2.1's parent sitemap; in a CentralConfigurationBlock in 2.2 for example. Then any other blocks you develop in Cocoon 2.2 can just have a dependency on that one block. =20 Happy you got it working. /dom -----Original Message----- From: Johannes Hoechstaedter [mailto:j.hoechstaedter@memocomp.de]=20 Sent: 06 June 2008 16:06 To: users@cocoon.apache.org Subject: Re: Database connection by cocoon 2.2 ok, I managed it. There were some spelling errors, and some more modifications ;), but I have some datas on the screen, thanks. Johannes Hoechstaedter schrieb: > Hi Dominic > > I tried, but I failed :). I didn't foun the file=20 > src/main/resources/META-INF/cocoon/avalon/custom-sitemap-compents.xcon > f so I put the content into my sitemap.xmap. I don't have an orcale=20 > db, so I replaced everything oracle sepcific by mysql data and adapted > ehe sql string. On "mvn jetty:run" I get the error > > java.lang.RuntimeException: Cannot invoke listener=20 > org.springframework.web.context.ContextLoaderListener > > But your idea is then nearest to mine. Tramsform data from the=20 > database into xml and show it, and the other way round. > > cheers Johannes > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain persona= l views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in relian= ce on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. =09 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org