Ok. Made a little progress. My cocoon.xconf was fine as was my sitemap.

I upgraded my cocoon (which was only a few weeks old), but that madea 
difference. I no longer get an error connecting to the db. I also
upgrade xindice, and finally got the commnadline admin tool to work,
which never had worked for me before.

I can see my collection via the command line you gave, and can view the
xml in it. 

However, when I attempt to retrieve xml via cocoon (sitemap below), I
get nothing but a blank html back (and why html and not blank xml?).

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

Brian


On Mon, 2004-01-05 at 14:56, Mark Eggers wrote:
> Brian,
> 
> I just put together a real quick test.  I have the
> following collection:
> 
> /db/addissue
> 
> It has 100 very small documents in it.
> 
> I put the following in my sitemap.xmap:
> 
> <map:pipeline>
>  <map:match pattern="addissue/**">
>   <map:match type="request-parameter"pattern="xpath">
>    <map:generate 
> src="xmldb:xindice://localhost:8080/db/addissue/{../1}#{1}"/>
>    <map:serialize type="xml"/>
>   </map:match>
>   <map:generate 
> src="xmldb:xindice://localhost:8080/db/addissue/{1}"/>
>   <map:serialize type="xml"/>
>  </map:match>
> </map:pipeline>
> 
> (sorry for the word-wrap problem)
> 
> I was able to get the listing with:
> 
> http://localhost/cocoon/~mdeggers/addissue/
> 
> A particular document as:
> 
> http://localhost/cocoon/~mdeggers/addissue/out00.xml
> 
> I am using Cocoon 2.1.4-dev checked out from CVS on
> 12/15/2003.
> 
> My cocoon.xconf looks like:
> 
> <component-instance 
> class="org.apache.cocoon.components.source.impl.XMLDBSourceFactory"
> name="xmldb">
> 
> <!-- 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"/>
> 
> <!-- Add here other XML:DB
>   compliant databases drivers -->
> </component-instance>
> 
> Can you reach your collection using the command line
> tools?
> 
> Try the following:
> 
> xindice ld -c \
>  xmldb:xindice://localhost:8080/db/restaurants
> 
> If you can, then there is something wrong with:
> 
> a) cocoon.xconf
> b) sitemap.xmap
> c) current CVS checkout of Cocoon
> 
> If you can't, then there is a problem with your
> installation of Xindice on Tomcat (?)
> 
> HTH
> /mde/
> just my two cents . . . .
> 
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/

Reply via email to