xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu RIOU <matthieu_r...@yahoo.fr>
Subject Re: Setting Xindice up as a client sever??
Date Fri, 17 Oct 2003 10:04:11 GMT
Hi,

You have to put the xindice-1.1b1.jar in your
classpath (produce when you build a dist) and apache
xmlrpc jar. Then you can use Xindice client API as
shown in documentation.

Here is a simple exemple that retrieves the root
collection : 

Class c =
Class.forName("org.apache.xindice.client.xmldb.DatabaseImpl");
Database db = (Database) c.newInstance();
DatabaseManager.registerDatabase(db);
Collection root =
DatabaseManager.getCollection("xmldb:xindice://localhost:8080/db");

Oh, and don't forget that your war must be named
Xindice.war (with X) or it won't work (don't ask me
why).

Matt.

 --- Seamus Murphy <smurphy@computing.dcu.ie> a
écrit : > Hi,
> 
> How can you set up clients to the server, cannot
> find out any notes on
> this?
> 
> Seamus
> 
> -----Original Message-----
> From: Matthieu RIOU [mailto:matthieu_riou@yahoo.fr] 
> Sent: 17 October 2003 10:37
> To: xindice-users@xml.apache.org
> Subject: What's wrong my xupdate ?? Xindice logs ???
> 
> Hi,
> 
> I'm trying to execute an xupdate statement with
> Xindice 1.1b1 (of course I checked everything
> exists)
> and gets a ProcessingException and that's all. No
> explanation about what's wrong. Is xindice logging
> somewhere ? I couldn't find anything in Apache. Is
> it
> possible to enable logging ?
> 
> <xu:modifications version="1.0"
> xmlns:xu="http://www.xmldb.org/xupdate">
> 	<xu:remove
>
select="/root/twister-id[.='variable26439']/../part21/"/>
> 	<xu:insert-after
> select="/root/twister-id[.='variable16439']/">
> 		<xu:element name="part21">
> 			<xu:value-of
>
select="/root/twister-id[.='variable16439']/../part11/"/>
> 		</xu:element>
> 	</xu:insert-after>
> </xu:modifications>
> 
> I'm getting those exception :
> 
> org.xmldb.api.base.XMLDBException: Query error
> Caused by: org.apache.xmlrpc.XmlRpcException:
> java.lang.Exception:
> org.apache.xindice.core.query.ProcessingException:
> Error executing XUpdate query
> 
>
___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et
> en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
>  

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

Mime
View raw message