RE: XMLDBGenerator

2002-02-22 Thread Stephan Michels



On Fri, 22 Feb 2002, Vadim Gritsenko wrote:

> > From: Stephan Michels [mailto:[EMAIL PROTECTED]]
> >
> > On Thu, 21 Feb 2002, Gianugo Rabellino wrote:
>
>
> 
>
> > > > xmldb:dbxml:///db/
> > >
> > > 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
> >  > 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=%27Cl
> etus%2
> > 7]
>
> Stack trace of the StringIndexOutOfBoundsException will be of greater
> help. And the version of the Cocoon you are using.


It now works.

I must use
http://vernjava:8080/cocoon/xmldb/addressbook/?xpath=//person[lname%3d%27Cletus%27]

I forgot the last slash after addressbook.

Also the mail from "Perry Molendijk" "Xindice and Cocoon How To" helped.

Thanx, Stephan Michels.


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: XMLDBGenerator

2002-02-21 Thread Vadim Gritsenko

> From: Stephan Michels [mailto:[EMAIL PROTECTED]]
> 
> On Thu, 21 Feb 2002, Gianugo Rabellino wrote:




> > > xmldb:dbxml:///db/
> >
> > 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
>  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=%27Cl
etus%2
> 7]
> 
> 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
>
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:1
66)
> at
>
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
ngEven
> tPipeline.java:255)
> 

Stack trace of the StringIndexOutOfBoundsException will be of greater
help. And the version of the Cocoon you are using.

Vadim


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: XMLDBGenerator

2002-02-21 Thread Stephan Michels



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:
> > > > xmldb:dbxml:///db/
> > >
> > > 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
> >  > 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: XMLDBGenerator

2002-02-21 Thread Martin Holz

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:
> > > xmldb:dbxml:///db/
> >
> > 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
>  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.

Regards
Martin

--
Martin Holz  <[EMAIL PROTECTED]>  phone: 0049-30-39977 218 
FIZ CHEMIE BERLIN

We do not make software "releases".
Our software escapes, leaving a bloody trail of designers
and quality assurance people in it's wake!

 

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: XMLDBGenerator

2002-02-21 Thread Stephan Michels



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:
>
> > xmldb:dbxml:///db/
>
> 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

into the cocoon.xconf


When I now try the request
http://vernjava:8080/cocoon/xmldb/addressbook?xpath=//person[lname=%27Cletus%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
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:166)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:255)

If I try this in the cmdline:
>xindice xpath_query -c /db/addressbook -q //person[lname=\'Cletus\']

http://xml.apache.org/xindice/Query";
src:col="/db/addressbook" src:key="address2">
   SlackJawedLocal
   Cletus
   123-456-7890
   234-567-8901
   345-678-9012
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]
   1234 S. Elm St.
   4567 W. Pine St.


Have anyone an idea?


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: XMLDBGenerator

2002-02-21 Thread Gianugo Rabellino

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.

Anyway, as for your problem, try to correct this:

> xmldb:dbxml:///db/

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:

 > 
org.apache.cocoon.components.source.XMLDBSource.connect(XMLDBSource.java:206)
 > at
 > 
org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:223)
 > at
 > 
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:146)


Ciao,

-- 
Gianugo Rabellino


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




XMLDBGenerator

2002-02-21 Thread Stephan Michels

Hi,

I try to use cocoon with xindice. I install the current CVS build and
changed the following rows in the sitemap.



org.apache.xindice.client.xmldb.DatabaseImplxmldb:dbxml:///db/





org.apache.xindice.client.xmldb.DatabaseImplxmldb:dbxml:///db/



I also copy the the xindice.jar in the WEB-IF/lib dir.

If I send a request like localhost:8080/cocoon/xmldb/db/
I got the exception:

org.apache.cocoon.ProcessingException: Problem setting up the connection
to XML:DB: org.dbxml.client.xmldb.DatabaseImpl:
java.lang.ClassNotFoundException: org.dbxml.client.xmldb.DatabaseImpl
at
org.apache.cocoon.components.source.XMLDBSource.connect(XMLDBSource.java:206)
at
org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:223)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:146)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:255)
[...]

xindice.jar and also xmldb-api-2001.jar doesn't contain this class.

Did I forget anything?

Thanx, Stephan Michels.


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>