xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Maisonneuve" <n.maisonne...@HotPOP.com>
Subject Re: xindice 1.1b2 + cocoon 2.1 + tomcat 4.1.27 + winxp - HOW??
Date Mon, 08 Sep 2003 10:33:44 GMT
if you use xindice just for cocoon , you sould use the Xindice embed mode ( so delete the war
, you don't need a separate servlet to use the database)
with this mode , you  don't use the network protocole XML-RPC, so it's faster.

in the cocoon.xconf 
search this lines.. 
    <component-instance class="org.apache.cocoon.components.source.impl.XMLDBSourceFactory"
            <driver class="org.apache.xindice.client.xmldb.DatabaseImpl" type="xindice"/>
-->> add this line       <driver class="org.apache.xindice.client.xmldb.embed.DatabaseImpl"

for the location of the db 
see http://marc.theaimsgroup.com/?l=xindice-users&m=105845229126670&w=2
in complement,  modiy the catalina.sh(or bat) to add  -Dxindice.configuration option 

in the sitemap : 

 - to read/seach  

use this example :
   <map:match pattern="xmldb/**">
        <map:match type="request-parameter" pattern="xpath">
             <map:generate src="xmldb:xindice-embed:///db/{../1}#{1}"/>
             <map:serialize type="xml"/>

example :  http://localhost:8080/cocoon/xmldb/mycollection/mysubcollection/?xpath=myXpathquery

- to write in the database
use the xmldb transformer 

in the declaration tranformer
 <map:transformer name="xmldb" src="org.apache.cocoon.transformation.XMLDBTransformer">

see the xmldb block in cocoon for more informations about this transformer

  ----- Original Message ----- 
  From: Stefan Pietschmann 
  To: xindice-users@xml.apache.org 
  Sent: Monday, September 08, 2003 10:45 AM
  Subject: xindice 1.1b2 + cocoon 2.1 + tomcat 4.1.27 + winxp - HOW??


  i'm totally new to xindice and I'm trying to set it up together with my cocoon installation.

  cocoon is installed correctly and worked. I downloaded xindice successfully from CVS, built
the *.war and deployed it. when I start tomcat I get the message "INFO: Database successfuly
started" - so i guess xindice is running as expected. I can also read the "UGLY DEBUG TOOL"
thing and browser the database.

  now, for being able to work with it, i would like to install the command line tool. however,
i haven't found any useful (or detailed enough) information on how to install it on win xp.
  I did everything explained at http://nagoya.apache.org/wiki/apachewiki.cgi?HowToXindice1o1bCocoon2
(the "Installing the Xindice command line tool" part).
  I have a separate xindice folder outside of the webapps, (set to %XINDICE_HOME%), added
%XINDICE_HOME%/bin to the %PATH% variable ... well. that's it.
  if I only have bin/* , dist/*, java/lib/* and config*/ folders in there (as suggested) the
"xindice" command doesn't work at all. If I copy the build folder in as well it at least gives
me two action options: "start" and "debug".

  but how do i tell the xindice command line tool in the external %XINDICE_HOME% folder to
use the database in %TOMCAT_HOME%/webapps/xindice-1.1b2/WEB_INF/db ?? the given command there
doesn't work - most likely since it's explained for linux.

  well, sorry if that's newbie stuff ;) if i got anything wrong please correct me. any help
is very much appreciated!!

  thanx guys

View raw message