cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Michels <step...@vern.chem.tu-berlin.de>
Subject Re: XMLDBGenerator
Date Thu, 21 Feb 2002 15:53:08 GMT


On Thu, 21 Feb 2002, Martin Holz wrote:

> Stephan Michels wrote:
> > On Thu, 21 Feb 2002, Gianugo Rabellino wrote:
> > > Stephan Michels wrote:
> > > > I try to use cocoon with xindice.
> > >
> > > Please avoid, if possible, the XML:DB generators, swith to the Source
> > > implementation, which allows you to use straightforward XML:DB URIs in
> > > your sitemap. The generators are going to be deprecated and abandoned in
> > > a short while.
> >
> > Okay, thank you.
> >
> > > Anyway, as for your problem, try to correct this:
> > > > <base>xmldb:dbxml:///db/</base>
> > >
> > > Base should be is xmldb:xindice///db/.
> > >
> > > Also, you are getting the error from the XML:DB source protocol, not
> > > from the generators, please double check your settings:
> >
> > I also added the the line
> > <driver type="xindice"
> > class="org.apache.xindice.client.xmldb.DatabaseImpl"/>
> > into the cocoon.xconf
> >
> >
> > When I now try the request
> > http://vernjava:8080/cocoon/xmldb/addressbook?xpath=//person[lname=%27Cletu
> 								^^^
> >s%27]
> >
> > I got following exception:
> > org.apache.cocoon.ProcessingException: Could not read resource
> > xmldb:xindice://vernjava:4080/addressbook:
> > java.lang.StringIndexOutOfBoundsException: String index out of range: -11
> > at
>
>
> You must quote the 'equal' sign too. IIRC is it %3D.

http://vernjava:8080/cocoon/xmldb/addressbook?xpath=//person[lname%3D%27Cletus%27]

doen't also work :[

I used the examples from xindice docs:
http://www.dbxml.org/docs/DevelopersGuide.html#NA7

And a StringIndexOutOfBoundsException isn't really a good explanation of
the problem.


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message