I made it on winXp by changing the system.xml file on WinXP. The trick is that you need to use RELEATIVE PATH, and you need to COPY the system directory in the original /db collection to your newly created colection.
For example: Change the folllowing part in the system.xml as <root-collection dbroot="../ramesh/mydb" name="mydb" security="false"> (It is slash / instead of backslash \) Then make a directory ../ramesh/mydb, copy the system directory from 'xindice_home\db\system' to ..\ramesh\mydb. make sure you do not have any collections in the xindice_home\Db before you copy the system directory to the new instance home directory, which is ../ramesh\mydb. And do not forget the releative path starts from XINDICE_HOME. Zhitao -----Original Message----- From: Kimbro Staken [mailto:[EMAIL PROTECTED] Sent: 2002��5��12�� 19:26 To: [email protected] Subject: Re: can i Change Collectionhome? In 1.0 there is a bug that prevents this on Windows. It would work it you were on UNIX. I believe a patch was added to CVS to fix it last week. On Friday, May 10, 2002, at 09:56 PM, ramesh reddy wrote: > Hai, > > > can i change the root collection(db) to my desired directory. I > want All collections has to be stored in different location insted of in > the same directory of 'Xinice_home/db'. > > I tried by changeing 'rootCollection' in > Xinidice_home/config/system.xml > > like, > > <root-collection dbroot="c:\ramesh\db" name="db" security="false"> > <queryengine> > <resolver autoindex="false" > class="org.apache.xindice.core.query.XPathQueryResolver" /> > <resolver > class="org.apache.xindice.core.xupdate.XUpdateQueryResolver" /> > </queryengine> > </root-collection> > > > but it is showin exception as, > > DEBUG> > org.apache.xindice.core.filer.FilerException: Filer is closed > at org.apache.xindice.core.filer.Paged.checkOpened(Paged.java:318) > at org.apache.xindice.core.filer.BTreeFiler.readRecord(BTreeFiler. > java:127) > at org.apache.xindice.core.Collection.getDocument(Collection.java: > 714) > at > org.apache.xindice.core.Collection.getObject(Collection.java:760) > at > org.apache.xindice.core.SystemCollection.loadSymbols(SystemCollection.ja va: > 182) > at > org.apache.xindice.core.Collection.setConfig(Collection.java:175) > at > org.apache.xindice.core.CollectionManager$1.process(CollectionManager.ja va: > 96) > at > org.apache.xindice.util.Configuration.processChildren(Configuration.java : > 684) > at > org.apache.xindice.core.CollectionManager.setConfig(CollectionManager.ja va: > 92) > at > org.apache.xindice.core.Collection.setConfig(Collection.java:216) > at org.apache.xindice.core.SystemCollection.init(SystemCollection. > java:155) > at org.apache.xindice.core.Database.setConfig(Database.java:155) > at > org.apache.xindice.server.services.XindiceService.initialize > (XindiceService.java:106) > at org.apache.xindice.server.standard.StdServiceManager.addService( > StdServiceManager.java:166) > at org.apache.xindice.server.standard.StdServiceManager$1.process( > StdServiceManager.java:104) > at > org.apache.xindice.util.Configuration.processChildren(Configuration.java : > 684) > at org.apache.xindice.server.standard.StdServiceManager.setConfig( > StdServiceManager.java:90) > at org.apache.xindice.server.Kernel.loadAPI(Kernel.java:336) > at org.apache.xindice.server.Kernel.<init>(Kernel.java:150) > at org.apache.xindice.server.Kernel.<init>(Kernel.java:117) > at org.apache.xindice.server.Xindice.main(Xindice.java:96) > DEBUG> Filer 'org.apache.xindice.core.filer.BTreeFiler' not available > > > waiting for your help > > Ramesh > [EMAIL PROTECTED] > > > > > > _________________________________________________________________ > Join the world�s largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > Kimbro Staken Java and XML Software, Consulting and Writing http://www.xmldatabases.org/ Apache Xindice native XML database http://xml.apache.org/xindice XML:DB Initiative http://www.xmldb.org
