You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Chuck Amadi <ch...@breconbeacons.org> on 2002/09/26 17:13:22 UTC

Plz help with this - error the requested uri /"cocoon-dev/xmldb" not found

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/

I get the follwing error the requested uri  /"cocoon-dev/xmldb" not found

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} "/>

Cheers chuck

-- 
Regards 
Chuck Amadi
ICT Dept Systems Programmer
Rhaglenydd Systemau Adran ICT




---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Plz help with this - error the requested uri /"cocoon-dev/xmldb" not found

Posted by Vadim Gritsenko <va...@verizon.net>.
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Coming up to speed

Posted by "David J. Thomson" <dt...@eecs.tufts.edu>.
Thank you for the reply. I would be most interested in "Xindice without
any networking", followed by how to add various networking models.  At
least, I would like to start Xindice programmatically without networking
support. Then, perhaps how to use XPath on a local "embedded" database,
without having to go over xmlrpc. I'm not sure if this means going around
(doing without) XML:DB or not. If someone were to send me something, I
would be happy to be responsible for documenting a solution and providing
my own code examples.

-David


RE: Coming up to speed

Posted by Per Nyfelt <pe...@nordicwave.com>.
Hi,

Since so many people seems to be using the embedded version in different scenarios maybe it would be
a good idea to have an examples section for some of the things where it is used. I myself is using
xindice as an JMX service running on JBoss and would not mind keeping it (i.e. the files needed to
make that work) in sync with the evolving server in an example or thirdparty section.

It would be nice with some examples of Xindice-Cocoon, Xindice-JBoss, etc (insert your favourite
appserver here). Then for people like David it would be quite simple to see different examples of
how people are using Xindice when plugging it into his own framework.

Best regards,
Per

> -----Original Message-----
> From: David J. Thomson [mailto:dthomson@eecs.tufts.edu]
> Sent: Friday, September 27, 2002 9:02 AM
> To: xindice-users@xml.apache.org
> Subject: Coming up to speed
>
>
> Hello all,
>
> I figured out the problem with the noname "ERROR :". I hadn't set my
> hostname correctly, which caused it to fail. Sorry about that.
>
> So, now that I have had a chance to look through the code and piece
> together some of the old discussions from the list, I'm trying to figure
> out the current status of the "embedded" version. I am most interested in
> this, as I've developed an application with highly customized
> authorization, security, authentication, and networking models. I checked
> out the latest cvs build, but it looked like the embed stuff was being
> tied to xml-rpc.
>
> Is there some way to get a really light implementation of Xindice? This
> whole project looks really compelling, but I would love to use Xindice
> simply as a back end only to avoid using flat files (as I'm doing now).
> I'm already using the DOM4J library for Document and XPath support all
> over the place. Also, I have an authentication model based on a
> zero-knowledge protocol, and raw encrypted sockets with strong crypto from
> bouncycastle.org.  I would like to use Xindice as a back-end for all of
> this work.
>
> In the least, I was hoping to use Xindice to serve the xml for an
> authorization manager in the hope of improving performance, as it gets hit
> really often for permissions checking (to build bitstreams from the xml
> files). This is pretty self-contained, so I wouldn't mind using another
> DOM or XPath library if I had to for this piece.  However, I would
> definitely not want to use either a different networking or security model
> (protocols, sockets, encryption, authentication).
>
> Is there a good starting interface somewhere around
> org.apache.xindice.core? Can I just initialize a Collection given a path
> to the db on disk and then query its index? I'd be more than willing to
> document all of this if it's possible. I just need a jump start. Thank you
> for your consideration.
>
> Take good care,
> David
>
>
>



Coming up to speed

Posted by "David J. Thomson" <dt...@eecs.tufts.edu>.
Hello all,

I figured out the problem with the noname "ERROR :". I hadn't set my
hostname correctly, which caused it to fail. Sorry about that.

So, now that I have had a chance to look through the code and piece
together some of the old discussions from the list, I'm trying to figure
out the current status of the "embedded" version. I am most interested in
this, as I've developed an application with highly customized
authorization, security, authentication, and networking models. I checked
out the latest cvs build, but it looked like the embed stuff was being
tied to xml-rpc.

Is there some way to get a really light implementation of Xindice? This
whole project looks really compelling, but I would love to use Xindice
simply as a back end only to avoid using flat files (as I'm doing now).
I'm already using the DOM4J library for Document and XPath support all
over the place. Also, I have an authentication model based on a
zero-knowledge protocol, and raw encrypted sockets with strong crypto from
bouncycastle.org.  I would like to use Xindice as a back-end for all of
this work.

In the least, I was hoping to use Xindice to serve the xml for an
authorization manager in the hope of improving performance, as it gets hit
really often for permissions checking (to build bitstreams from the xml
files). This is pretty self-contained, so I wouldn't mind using another
DOM or XPath library if I had to for this piece.  However, I would
definitely not want to use either a different networking or security model
(protocols, sockets, encryption, authentication).

Is there a good starting interface somewhere around
org.apache.xindice.core? Can I just initialize a Collection given a path
to the db on disk and then query its index? I'd be more than willing to
document all of this if it's possible. I just need a jump start. Thank you
for your consideration.

Take good care,
David


Re: Plz help with this - error the requested uri /"cocoon-dev/xmldb" not found

Posted by KOZLOV Roman <r-...@opencascade.com>.
Hi Chuck,

Why do you use "xml:xindice/" instead of "xmldb:xindice//" which is default? In
your examples I can see spaces in your URL's. Hope they are in the mail only.
The following pipeline snippet is working for me:
   <map:match pattern="xmldb/**">
    <map:match type="request-parameter" pattern="xpath">
     <map:generate src="xmldb:xindice://localhost:4080/{../1}#{1}"/>
     <map:serialize type="xml"/>
    </map:match>

    <map:generate src="xmldb:xindice://localhost:4080/{1}"/>
    <map:serialize type="xml"/>
   </map:match>


Roman

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/
>
> I get the follwing error the requested uri  /"cocoon-dev/xmldb" not found
>
> 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} "/>
>
> Cheers chuck
>
> --
> Regards
> Chuck Amadi
> ICT Dept Systems Programmer
> Rhaglenydd Systemau Adran ICT