Chuck Amadi wrote: > Hi there , I'm still in the dog house as I can't seem to figure out > why Cocoon 2 want serve up any Xindice data. > > I have started Xindice & run Tomcat 4 > I get the Cocoon Welcome page > (http://172.**.*.**:9999/cocoon-dev/status and the others) .> > Except when I attempt > http://172.**.*.**:9999/cocoon-dev/xmldb/addressbook/
1. Make sure you have xindice.jar in WEB-INF/lib 2. Make sure you have addressbook collection. Check using xindice command line tools. 3. Check that you have in cocoon.xconf: <source-handler logger="core.source-handler"> <protocol class="org.apache.cocoon.components.source.XMLDBSourceFactory" name="xmldb"> <driver class="org.apache.xindice.client.xmldb.DatabaseImpl" type="xindice"/> </protocol> </source-handler> 4. Check that you have class org.apache.cocoon.components.source.XMLDBSourceFactory in the cocoon.jar 5. Check that you have entry in sitemap.xmap: <map:match pattern="xmldb/**"> <map:match pattern="xpath" type="request-parameter"> <map:generate src="xmldb:xindice://localhost:4080/db/{../1}#{1}"/> <map:serialize type="xml"/> </map:match> <map:generate src="xmldb:xindice://localhost:4080/db/{1}"/> <map:serialize type="xml"/> </map:match> 6. Then URL will work: http://***/cocoon-dev/xmldb/addressbook/ > I get the follwing error the requested uri /"cocoon-dev/xmldb" not found There are log files for you debugging pleasure in the WEB-INF/logs. It is *highly* recommended reading them, and sending appropriate pieces from them in the email. > I have tried the match tag in sitemap.xmap ie localhost , ipAddress > still no joy. > ensured it reads src="xml:xindice:/172.**.*.**:4080/db/ {..1}# {1}" > "/> & the other map:generate - src="xml:xindice:/172.**.*.**:4080/db/ > {1} "/> Protocol is not xml: but xmldb: Also, should be no spaces. Vadim > Cheers chuck --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>