I am not using the embedded version. I'm using xindice deployed as a war under Tomcat. Its accessible via http://localhost:8080/xindice/. It is already populated.
I can run the xindice command line tool like this and get the proper responses: xindice ld -c xmldb:xindice://localhost:8080/db/restaurants AND xindice lc -c xmldb:xindice://localhost:8080/db I am using the rpc driver that you suggest below as well (org.apache.xindice.client.xmldb.xmlrpc.DatabaseImpl). The collection and db exist within the xindice webapp. I did not set the system property you suggest (xindice.configuration=<file_location>/system.xml). What is in that for? Is that just for the embedded version? Why would cocoon need to be told where the db is, when it can access it via xmlrpc? My sitemap uses the following to query the db: <map:match pattern="db/**"> <map:match type="request-parameter" pattern="xpath"> <map:generate src="xmldb:xindice://localhost:8080/db/{../1}#{1}"/> <map:serialize type="text"/> </map:match> <map:generate src="xmldb:xindice://localhost:8080/db/{1}"/> <map:serialize type="text"/> </map:match> Brian On Thu, 2004-01-08 at 12:29, Mark Eggers wrote: > Brian, > > If you're using the xmldb samples block, the first > thing you will have to do is populate the database. > The samples page uses an internal database. > > If you want to use your own database with the embedded > connector, you need to do the following: > > 1. create or copy the system.xml file for a database > to a known location. > > 2. create or copy the actual database to where the > system.xml file points to. > > 3. add the following option to your catalina.sh in > JAVA_OPTS > > -Dxindice.configuration=<file_location>/system.xml > > This will pass the information to the generator. I > know, it would be nice to have an init-param within > the Cocoon context . . . . > > >From what you've been writing, it sounds like you're > not using the Xindice driver with xml-rpc, but the > embedded Xindice driver. > > What does the following section of your cocoon.xconf > look like? > > Here's mine: > > <!-- Xindice driver --> > <driver > class="org.apache.xindice.client.xmldb.DatabaseImpl" > > type="xindice"/> > <!-- Xindice 1.1 Embedded driver --> > <driver > class= > "org.apache.xindice.client.xmldb.embed.DatabaseImpl" > > type="xindice-embed"/> > > You might try replacing: > > org.apache.xindice.client.xmldb.DatabaseImpl > > with > > org.apache.xindice.client.xmldb.xmlrpc.DatabaseImpl > > The top level driver is supposed to roll over to > xml-rpc . . . . > > Another question - where is this collection living? > Is it living under the Tomcat Xindice war application > or did you add it via the command line to the > standalone Xindice server. If you did the latter, > you'll need to do the following: > > xindice start (to start the Jetty server) > > Change all of your 8080 to 8888 (where the Jetty > server runs by default). > > You can test things by using the command line. > > xindice ld -c /db/restaurants > > will list the document names if the standalone server > is running and is available on 8888. > > xindice ld -c \ > xmldb:xindice://localhost:8080/db/restaurants > > will list the document names if your collection is in > the Tomcat Xindice instance. > > HTH > /mde/ > just my two cents . . . . > > --- Brian Burridge <[EMAIL PROTECTED]> wrote: > > Yes,and I get: > > > > Resource Not found > > Collection xmldb:xindice://localhost:8080/db/ not > > found > > > __________________________________ > Do you Yahoo!? > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > http://hotjobs.sweepstakes.yahoo.com/signingbonus