Re: xindice 1.1 xupdate java xml-rpc

2003-08-07 Thread jcplerm
You should start taking a look at XINDICE_HOME\java\src\org\apache\xindice\client\xmldb\xmlrpc\CollectionImpl. java. That file, as stated by other members of this mailing list, is a good example of client XML-RPC code. What I did was to "canibalize" that code and build my own Collection class, with

Peculiar issue with deletes!

2003-08-07 Thread Rupali Parab
Hi all, Is it possible that xindice would delete some records on its own. I was running some select queries on a collection and was getting results. Suddenly it stopped giving me results. furthermore , it is refusing to let me insert into that collection. Could it be possible that the index for th

Re: xindice 1.1 xupdate java xml-rpc

2003-08-07 Thread matt ma
Hi jlerm, thanks for the quick reply. I gave your code a whirl in my xml-rpc code and got a stackoverflow error. My current xml-rpc code works and can successfully create collection. Do you think you could send me your runRemoteCommand("Query", params) method? That way I can compare the diff

Re: dtd expansion

2003-08-07 Thread Murray Altheim
shane nuessler wrote: YIPEE! Thanks Marray for all your help! In the end I added saxReader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd";, false); just under saxReader.setProperty("http://xml.org/sax/properties/lexical-handler";,

Re: remote connection to a Xindice db installed in jboss (jetty)

2003-08-07 Thread Stan Pinte
actually I found the hack: rename the war to Xindice.war, re-deploy, and use the following URI: col = DatabaseManager.getCollection("xmldb:xindice://localhost:8086/db/"); It now leads the error: XML:DB Exception occured 201 Cannot create child collection Any idea? thanks, Stan. At 12

remote connection to a Xindice db installed in jboss (jetty)

2003-08-07 Thread Stan Pinte
hello, the following URL works fine for me, a proff the Xindice runs: http://localhost:8086/xindice-1.1b1?/db//system/SysConfig&database.xml but I cannot connect remotely to the db: using Database database = (Database) c.newInstance(); DatabaseManager.registerDatabase(database); c

xindice-1.1b1 src compilation error

2003-08-07 Thread Stan Pinte
hello, I get the that error when compiling the xindice-1.1b1 src distrib. [javac] C:\export\xindice-1.1b1\java\src\org\apache\xindice\core\query\XPath QueryResolver.java:542: array required, but org.apache.xpath.compiler.OpMapVecto r found [javac] int endFunc = pos + cmp.getOpMap

Re: dtd expansion

2003-08-07 Thread shane nuessler
YIPEE! Thanks Marray for all your help! In the end I added saxReader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd";, false); just under saxReader.setProperty("http://xml.org/sax/properties/lexical-handler";, ser); in xm

Re: xindice 1.1 xupdate java xml-rpc

2003-08-07 Thread jcplerm
This is an XML-RPC piece of code that executes XUpdate. It's almost the same as for a regular query, except the "TYPE" param is "XUpdate". public String executeXUpdate(String xupdateCmd) throws XMLDBException { String result=null; try { checkOpen(); Hash

xindice 1.1 xupdate java xml-rpc

2003-08-07 Thread matt ma
Hello, Does anyone have any code samples or point me to where I can find some code samples on executing xupdate statements with xml-rpc in java? I'm a heavy user of xupdate on xindice 1.0 and would like to migrate my code to use xindice 1.1 and xml-rpc. So far, all I've found is How to send XM