On 28.11.2003 00:41, Vadim Gritsenko wrote:

xmldb samples were lost during blocks creation. You are welcome to fix them (create subsitemap, etc, etc, as for all other samples). I'd do it too but I don't have much time atm.

Ah, ok, didn't know that. Read on ...


(4) restart and go to http://localhost:8888/samples/xmldb/

Have you tried it recently? Especially as one mentioned that it works with
2.1.2 and no longer with current 2.1.4-dev [1]. Has something changed that
we should document anywhere?

I tried it yesterday, 1:30 AM EST :)

Really exact :-)


I tried it only with xindice-embed driver as I was too lazy to configure xmlrpc server. My pipeline fragment looks like this:

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

     <map:generate src="xmldb:xindice-embed:///db/{1}"/>
     <map:serialize type="xml"/>
   </map:match>

Sometimes I miss the obvious: I had xindice of course as it was originally, but I used the embedded version.


Next try: unknown method exception at XMLDBException ...
I updated to xmldb-api-20021118.jar => works.

I'll commit a really simple solution: moving the pipelines into blocks/xmldb/samples/sitemap.xmap and fixing the conf files in an appropriate way.

With XMLDB source I get

Caused by: org.apache.xindice.core.DBException: This Collection 'db' cannot store Documents
at org.apache.xindice.core.Collection.checkFiler(Collection.java:303)
at org.apache.xindice.core.Collection.getDocumentCount(Collection.java:990)
at org.apache.xindice.client.xmldb.embed.CollectionImpl.getResourceCount(CollectionImpl.java:161)


at http://127.0.0.1:8888/samples/xmldb/

and

org.apache.cocoon.ResourceNotFoundException: Document xmldb:xindice-embed:///db/test not found
at org.apache.cocoon.components.source.impl.XMLDBSource.resourceToSAX(XMLDBSource.java:208)


at http://127.0.0.1:8888/samples/xmldb/test

With XMLDB generators I get

org.apache.cocoon.ResourceNotFoundException: Document // not found
at org.apache.cocoon.generation.XMLDBGenerator.generate(XMLDBGenerator.java:205)


at http://127.0.0.1:8888/samples/xmldb/xmldb-generator/db/

and

org.apache.cocoon.ResourceNotFoundException: Document //test not found
at org.apache.cocoon.generation.XMLDBGenerator.generate(XMLDBGenerator.java:205)


at http://127.0.0.1:8888/samples/xmldb/xmldb-generator/db/test

While I can explain the cases 2 - 4 (empty database), I don't understand no. 1 as it should be the same as no. 3, shouldn't it?

Some real samples seem to be missing. I will look into 2.0 samples tomorrow.

Joerg



Reply via email to