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

Reply via email to