Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 98000 invoked from network); 6 Jun 2006 23:14:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jun 2006 23:14:19 -0000 Received: (qmail 65992 invoked by uid 500); 6 Jun 2006 23:14:12 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 65942 invoked by uid 500); 6 Jun 2006 23:14:12 -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 65930 invoked by uid 99); 6 Jun 2006 23:14:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 16:14:11 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=HTML_FONT_BIG,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [82.153.254.70] (HELO mra02.ch.as12513.net) (82.153.254.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 16:14:10 -0700 Received: from localhost (localhost [127.0.0.1]) by mra02.ch.as12513.net (Postfix) with ESMTP id 0B1F7D4318 for ; Wed, 7 Jun 2006 00:13:48 +0100 (BST) Received: from mra02.ch.as12513.net ([127.0.0.1]) by localhost (mra02.ch.as12513.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32363-01-20 for ; Wed, 7 Jun 2006 00:13:47 +0100 (BST) Received: from [192.168.0.2] (unknown [82.153.199.208]) by mra02.ch.as12513.net (Postfix) with ESMTP id 3342BD42DD for ; Wed, 7 Jun 2006 00:13:46 +0100 (BST) Message-ID: <44860C26.6060903@didm.co.uk> Date: Wed, 07 Jun 2006 00:13:42 +0100 From: Peter Sparkes Reply-To: peter@didm.co.uk User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: AW: eXist xmldb References: <004201c689aa$56a3aa50$0c2aa8c0@univativ.com> In-Reply-To: <004201c689aa$56a3aa50$0c2aa8c0@univativ.com> Content-Type: multipart/alternative; boundary="------------030900010402000406090000" X-Virus-Scanned: by Eclipse VIRUSshield at eclipse.net.uk X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------030900010402000406090000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Chris, Thank you - I am out of the office tomorrow so will set it up on Thursday. Regards Peter > Hi Peter > > > > Assuming you are using a relatively new version of exist (either the > snapshot or current subversion checkout) and you only want direct > access (no XML-RPC or other fancy network stuff) > > Here is what you have to do: > > > > Copy the following jars to cocoons WEB-INF/lib directory: > > exist/exist.jar > > exist/exist-optional.jar > > exist/lib/core/antlr.jar > > exist/lib/core/commons-pool-1.2.jar > > exist/lib/core/xmldb.jar > > exist/lib/core/xmlrpc-1.2-patched.jar > > > > Add the following to the Generators section of the sitemap: > > > > > > Add the following to your cocoon.xconf: inside the the > org.apache.cocoon.components.source.impl.XMLDBSourceFactory > configuration (there should be a xindice driver configured) > > > > I would recommend removing the unused driver, because I remember > cocoon trying to initialize the driver, but because of a missing > Xindice cocoon gets an error and skips the following drivers. > > This should result in the xmldb:exist pseudo protocol being accessible. > > > > To start the server, add the following to the cocoon.xconf: > > class="de.cware.cweb.system.xmldb.XmlDbServerImpl" > home="C:/home/domains" suffix="data/xmldb" minBrokers="1" maxBrokers="5"/> > > Well I have to admit, that I created my own Server component for > starting the db itself inside cocoon ... think you will have to have a > look for code looking like: > > BrokerPool.configure("exist", minBrokers, maxBrokers, config); > > > > This is where initializing the BorkerPool for the instance is > initialted. Couldn't fin exactly which class is needed for this. > > If you don't manage to find it, I can send you mine, but that is made > for initializing multiple Database Instances automatically (one per > virtual hosts) but It would be suitable for a start J > > > > Last not least, you have to place the exist config.file in the > WEB-INF/classes directory, so it can be found by the Configuration ... > think you can place it in WEB-INF/ directly, but I always use the > classpath access path. > > > > Hope this helps you and I didn't miss anything (not using the original > DB server and Drivers anymore) > > > > Regards, > > Chris > > > > ------------------------------------------------------------------------ > > *Von:* Peter Sparkes [mailto:peter@didm.co.uk] > *Gesendet:* Dienstag, 6. Juni 2006 18:50 > *An:* users@cocoon.apache.org > *Betreff:* eXist xmldb > > > > Hi > > I am trying to install the eXist xmldb into cocoon 2.1.9 running under > tomcat 5.5, please: > > 1. Where can I find the best documentation on how to install eXist > xmldb into cocoon. There are several such docs on the web but all the > ones I have found are old and they mention eXist jars which are not in > the latest eXist distribution. > > 2. Where can I find documentation on the "xmldb:// pseudo-protocol" > other than the apidocs and hoe to use it > > Thanks > > Peter Sparkes > --------------030900010402000406090000 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Chris,

Thank you - I am out of the office tomorrow so will set it up on Thursday.

Regards

Peter

Hi Peter

 

Assuming you are using a relatively new version of exist (either the snapshot or current subversion checkout) and you only want direct access (no XML-RPC or other fancy network stuff)

Here is what you have to do:

 

Copy the following jars to cocoons WEB-INF/lib directory:

exist/exist.jar

exist/exist-optional.jar

exist/lib/core/antlr.jar

exist/lib/core/commons-pool-1.2.jar

exist/lib/core/xmldb.jar

exist/lib/core/xmlrpc-1.2-patched.jar

 

Add the following to the Generators section of the sitemap:

<map:generator name="xquery" src=" org.exist.cocoon.XQueryGenerator "/>

 

Add the following to your cocoon.xconf: inside the the org.apache.cocoon.components.source.impl.XMLDBSourceFactory configuration (there should be a xindice driver configured)

<driver class=" org.exist.xmldb.DatabaseImpl" type="exist"/>

I would recommend removing the unused driver, because I remember cocoon trying to initialize the driver, but because of a missing Xindice cocoon gets an error and skips the following drivers.

This should result in the xmldb:exist pseudo protocol being accessible.

 

To start the server, add the following to the cocoon.xconf:

<component role=" org.exist.server" class="de.cware.cweb.system.xmldb.XmlDbServerImpl" home="C:/home/domains" suffix="data/xmldb" minBrokers="1" maxBrokers="5"/>

Well I have to admit, that I created my own Server component for starting the db itself inside cocoon … think you will have to have a look for code looking like:

BrokerPool.configure(“exist”, minBrokers, maxBrokers, config);

 

This is where initializing the BorkerPool for the instance is initialted. Couldn’t fin exactly which class is needed for this.

If you don’t manage to find it, I can send you mine, but that is made for initializing multiple Database Instances automatically (one per virtual hosts) but It would be suitable for a start J

 

Last not least, you have to place the exist config.file in the WEB-INF/classes directory, so it can be found by the Configuration … think you can place it in WEB-INF/ directly, but I always use the classpath access path.

 

Hope this helps you and I didn’t miss anything (not using the original DB server and Drivers anymore)

 

Regards,

    Chris

 


Von: Peter Sparkes [mailto:peter@didm.co.uk]
Gesendet: Dienstag, 6. Juni 2006 18:50
An: users@cocoon.apache.org
Betreff: eXist xmldb

 

Hi

I am trying to install the eXist xmldb into cocoon 2.1.9 running under tomcat 5.5, please:

1. Where can I find  the best documentation  on how to install eXist xmldb into cocoon. There are several such docs on the web but all the ones I have found are old and they mention eXist jars which are not in the latest eXist distribution.

2. Where can I find documentation on the
"xmldb:// pseudo-protocol" other than the apidocs and hoe to use it

Thanks

Peter Sparkes

--------------030900010402000406090000--