Hi!

I'm new to this list, and to Xindice. I'm having trouble 
getting Xindice itegrated with Cocoon.

Xindice (1.1b3) is running under Tomcat (4.1.29). No 
probems using the command-line interface (with option
-c xmldb:xindice://localhost:8080/db).

I built a Cocoon .war from last night's 2.1.4-dev source;
unpacked it in Tomcat. Again, no problems.

(This is all running on the JVM from Sun j2sdk, 1.4.2_03.)

I start up Tomcat with the option -Dxindice-configuration=
<my path>/webapps/xindice/WEB-INF/system.xml, as recommended
on the Cocoon Wiki page XMLXindiceCocoon2.1. 

Otherwise, everything is "out of the box."

Now i run into confusion:

1. When i tried the "init" link on the xmldb samples page, 
   the following things succeeded:

   - create collection "cocoon"
   - import samples.xml
   - import samples.xml as "xsamples.xml"

   Everything else failed. I looked at all the files; couldn't
   grasp why the other imports failed when "import samples.xml"
   worked.

2. A directory named "cocoon" has in fact been added to my
   db directory. It contains the file cocoon.tbl.

   But i can't see this collection using the Xindice command-
   line.

3. I use the Xindice command-line to create and populate a
   "testcol" collection.

   I CAN see this collection with both the Xindice command-line
   AND the XMLDB Browser from the Cocoon samples.

   In fact, i can run queries against the collection from the
   XMLDB Browser.

4. I try the following sitemap fragment:

   <map:match pattern="xindicetest">
     <map:generate 
          source="xmldb:xindice://localhost:8080/db/testcol/#/*" />
     <map:serialize type="xml" />
   </map:match>

   I get the following error message:

   Could not setup pipeline.: 
   java.net.MalformedURLException: Invalid System ID

   Tried a bunch of variations, with the same result.

5. I check cocoon.xconf, just in case. Everything looks right 
   (as described on the Cocoon wiki page i mentioned earlier).

I'm groping in the darkness. I've been at this for several
very late nights, first with eXist, now with Xindice. Any 
insight that anyone can offer will be *very* much appreciated.

Thanks to all--especially to any Cocoon or Xindice committers 
who may be reading this list: you rock!

-- tony

Reply via email to